Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Lau <rlau@redhat.com>2021-09-03 19:54:28 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2021-10-13 20:11:38 +0300
commit9dfa30bdd53e0c110106314f9d40a3889941bd72 (patch)
tree49ad3dce9a47ec891d7776317fa7e0bb89bd5285 /common.gypi
parent228e703dedf0102a6af627a13926f85b693adab1 (diff)
build: compile with C++17 (MSVC)
PR-URL: https://github.com/nodejs/node/pull/38807 Refs: https://github.com/nodejs/node/pull/38788 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ash Cripps <acripps@redhat.com>
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi5
1 files changed, 4 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi
index c0427c25a02..505cacb938e 100644
--- a/common.gypi
+++ b/common.gypi
@@ -259,7 +259,10 @@
],
'msvs_settings': {
'VCCLCompilerTool': {
- 'AdditionalOptions': ['/Zc:__cplusplus'],
+ 'AdditionalOptions': [
+ '/Zc:__cplusplus',
+ '-std:c++17'
+ ],
'BufferSecurityCheck': 'true',
'DebugInformationFormat': 1, # /Z7 embed info in .obj files
'ExceptionHandling': 0, # /EHsc