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 7294396 commit 128bb29Copy full SHA for 128bb29
llvm/utils/gn/build/BUILD.gn
@@ -183,9 +183,11 @@ config("compiler_defaults") {
183
cflags += [ "/EHs-c-" ]
184
cflags_cc += [ "/std:c++17" ]
185
186
- # cl.exe doesn't set __cplusplus correctly by default.
187
- # clang-cl gets it right by default, so don't needlessly add the flag there.
188
if (!is_clang) {
+ # expand __VA_ARGS__ in "OPTION(...) LLVM_MAKE_OPT_ID(__VA_ARGS__)"
+ cflags += [ "/Zc:preprocessor" ]
189
+ # cl.exe doesn't set __cplusplus correctly by default.
190
+ # clang-cl gets it right by default, so don't needlessly add the flag there.
191
cflags_cc += [ "/Zc:__cplusplus" ]
192
}
193
0 commit comments