llvm compilation error on windows, duplicated command line option #42555
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
O-windows
Operating system: Windows
O-windows-msvc
Toolchain: MSVC, Operating system: Windows
It's likely not a problem of rust itself, but should be noted anyway.
I get a bunch of errors when trying to compile stage1 on msvc-x64.
Example:
It happens because resource compiler gets two
/nologo
flags for some reason.Example from build log:
It seems that one of these
/nologo
flags comes frombuild\x86_64-pc-windows-msvc\llvm\build\lib\cmake\llvm\AddLLVM.cmake
(copied fromsrc\llvm\cmake\modules\AddLLVM.cmake
?).I guess that the other one is automatically added by
msbuild
because of<SuppressStartupBanner>true</SuppressStartupBanner>
option.That option, in turn, controlled by
CMAKE_VERBOSE_MAKEFILE
which is false by default.Removing
/nologo
fromAddLLVM.cmake
and running cmake manually helps.The text was updated successfully, but these errors were encountered: