diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-29 20:34:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-29 20:34:58 +0200 |
| commit | 96bb98c9c01b698c39fe53da006cdc1797d90cc8 (patch) | |
| tree | 7bae5d770aa744f4405ccc47e3732e61c86fae18 /src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff | |
| parent | 3fcf43bb0f3e86c16a88f239da18a1729a94d244 (diff) | |
| parent | 1fca2468420bb5ac2f6868bddc65e164dd05dbfb (diff) | |
| download | rust-96bb98c9c01b698c39fe53da006cdc1797d90cc8.tar.gz rust-96bb98c9c01b698c39fe53da006cdc1797d90cc8.zip | |
Rollup merge of #98434 - dpaoliello:staticcrt, r=jyn514
Ensure that `static_crt` is set in the bootstrapper whenever using `cc-rs` to get a compiler command line. When attempting to build rustc with LLVM on Windows, I noticed that the CRT flag provided to the C and C++ Compilers was inconsistent: ``` "-DCMAKE_C_FLAGS=-nologo -MT -Brepro" "-DCMAKE_CXX_FLAGS=-nologo -MD -Brepro" ``` Since the bootstrapper also sets the various `LLVM_USE_CRT` variables, this resulted in cl.exe reporting a bunch of warnings: ``` cl : Command line warning D9025 : overriding '/MD' with '/MT' ``` The root cause for this is that `cc_detect::find` was creating a `cc::Build` twice, but didn't set `static_crt` the second time. It's possible that this what is also causing #81381
Diffstat (limited to 'src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff')
0 files changed, 0 insertions, 0 deletions
