We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94def1b commit 401dee4Copy full SHA for 401dee4
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -494,6 +494,10 @@ if( MSVC )
494
495
append("/Zc:inline" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
496
497
+ # Enable standards-conforming preprocessor.
498
+ # https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor
499
+ append("/Zc:preprocessor" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
500
+
501
# Some projects use the __cplusplus preprocessor macro to check support for
502
# a particular version of the C++ standard. When this option is not specified
503
# explicitly, macro's value is "199711L" that implies C++98 Standard.
0 commit comments