diff options
| author | Jon Gjengset <jongje@amazon.com> | 2022-02-11 11:44:44 -0800 |
|---|---|---|
| committer | Jon Gjengset <jongje@amazon.com> | 2022-02-11 16:09:38 -0800 |
| commit | 07dae5a97b64100f5abd511f1e2d5a6263a54006 (patch) | |
| tree | fd35ca14b7e82f628a7bcd45cd6dd6f5d65308a2 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 78450d2d602b06d9b94349aaf8cece1a4acaf3a8 (diff) | |
| download | rust-07dae5a97b64100f5abd511f1e2d5a6263a54006.tar.gz rust-07dae5a97b64100f5abd511f1e2d5a6263a54006.zip | |
bootstrap: make LLVM build respect *FLAGS envvars
This tidies up the logic in `src/bootstrap/native.rs` such that: - `CMAKE_*_LINKER_FLAGS` is not overridden if we add to it twice. - `CMAKE_*_FLAGS` also include the standard `*FLAGS` environment variables, which CMake respects when we _don't_ set `CMAKE_*_FLAGS`. - `llvm.ldflags` from `config.toml` appends to the ldflags Rust's bootstrap logic adds, rather than replacing them. Fixes #93880.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
