about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJon Gjengset <jongje@amazon.com>2022-02-28 16:40:08 -0800
committerJon Gjengset <jongje@amazon.com>2022-03-03 09:42:23 -0800
commit9c05f0b72c99cc91117282f7f267964824f187bf (patch)
tree4b65e7a429cbfdfba00f56f6d15e4a3a0956f807 /compiler/rustc_codegen_llvm/src
parent45660949132222ba7ec0905649b2affd68e0e13c (diff)
downloadrust-9c05f0b72c99cc91117282f7f267964824f187bf.tar.gz
rust-9c05f0b72c99cc91117282f7f267964824f187bf.zip
bootstrap: correct reading of flags for llvm
First, this reverts the `CFLAGS`/`CXXFLAGS` of #93918. Those flags are
already read by `cc` and populated into `Build` earlier on in the
process. We shouldn't be overriding that based on `CFLAGS`, since `cc`
also respects overrides like `CFLAGS_{TARGET}` and `HOST_CFLAGS`, which
we want to take into account.

Second, this adds the same capability to specify target-specific
versions of `LDFLAGS` as we have through `cc` for the `C*` flags:
https://github.com/alexcrichton/cc-rs#external-configuration-via-environment-variables

Note that this also necessitated an update to compiletest to treat
CXXFLAGS separately from CFLAGS.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions