Closed
Description
Trying to build rustc with Visual Studio 2019 Build Tools results in the following error:
running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.21.27702\\bin\\HostX64\\x64\\cl.exe" "/nologo" "/MT" "/O2" "/Zl" "/D__func__=__FUNCTION__" "/FoC:\\Proj\\rust\\build\\x86_64-pc-windows-msvc\\stage0-std\\x86_64-pc-windows-msvc\\release\\build\\compiler_builtins-21b4e69466e2594a\\out\\divdc3.o" "/c" "C:\\Proj\\rust\\src/llvm-project/compiler-rt\\lib/builtins\\divdc3.c"
divdc3.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\include\xkeycheck.h(45): warning C4005: 'bool': macro redefinition
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\include\stdbool.h(15): note: see previous definition of 'bool'
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\include\xkeycheck.h(47): fatal error C1189: #error: The C++ Standard Library forbids macroizing the keyword "bool". Enable warning C4005 to find the forbidden define.
exit code: 2
I've tried version versions 16.1.1 and 16.1.3 on different machines with the same result.
Visual Studio 2017 Build Tools work fine.
Is there some magic incantation I'm missing?
Metadata
Metadata
Assignees
Labels
No labels