Skip to content

Commit 14a7229

Browse files
targoslemire
andcommitted
build: select C/C++ language standard with ClCompile options
This avoids passing the `-std:c++20` flag while compiling C code. Co-authored-by: Daniel Lemire <[email protected]>
1 parent 7b13545 commit 14a7229

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common.gypi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,11 @@
287287
],
288288
'msvs_settings': {
289289
'VCCLCompilerTool': {
290+
# -std:c++20
291+
'LanguageStandard': 'stdcpp20',
292+
'LanguageStandard_C': 'stdc11',
290293
'AdditionalOptions': [
291294
'/Zc:__cplusplus',
292-
# The following option enables c++20 on Windows. This is needed for V8 v12.4+
293-
'-std:c++20',
294295
# The following option reduces the "error C1060: compiler is out of heap space"
295296
'/Zm2000',
296297
],

0 commit comments

Comments
 (0)