diff options
| author | Jon Gjengset <jongje@amazon.com> | 2022-02-28 16:40:08 -0800 |
|---|---|---|
| committer | Jon Gjengset <jongje@amazon.com> | 2022-03-03 09:42:23 -0800 |
| commit | 9c05f0b72c99cc91117282f7f267964824f187bf (patch) | |
| tree | 4b65e7a429cbfdfba00f56f6d15e4a3a0956f807 /compiler/rustc_codegen_llvm/src | |
| parent | 45660949132222ba7ec0905649b2affd68e0e13c (diff) | |
| download | rust-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
