diff options
| author | Daniel Paoliello <danpao@microsoft.com> | 2022-06-23 13:05:42 -0700 |
|---|---|---|
| committer | Daniel Paoliello <danpao@microsoft.com> | 2022-06-27 11:46:57 -0700 |
| commit | 1fca2468420bb5ac2f6868bddc65e164dd05dbfb (patch) | |
| tree | 3f837af8e171839ebc38fd4842fcc5587848eaef /src/test/mir-opt/lower_array_len.array_len.SimplifyLocals.diff | |
| parent | 10f4ce324baf7cfb7ce2b2096662b82b79204944 (diff) | |
| download | rust-1fca2468420bb5ac2f6868bddc65e164dd05dbfb.tar.gz rust-1fca2468420bb5ac2f6868bddc65e164dd05dbfb.zip | |
Ensure that `static_crt` is set in the bootstrapper whenever using `cc` 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
