Skip to content

Commit 9f0bc60

Browse files
richardlaunodejs-github-bot
authored andcommitted
build: compile with --gnu++17
Enables C++17 features. PR-URL: #38807 Refs: #38788 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Ash Cripps <[email protected]>
1 parent 350a95b commit 9f0bc60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.gypi

+2-2
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@
377377
}],
378378
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
379379
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
380-
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
380+
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
381381
'defines': [ '__STDC_FORMAT_MACROS' ],
382382
'ldflags': [ '-rdynamic' ],
383383
'target_conditions': [
@@ -521,7 +521,7 @@
521521
['clang==1', {
522522
'xcode_settings': {
523523
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
524-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++14', # -std=gnu++14
524+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++17', # -std=gnu++17
525525
'CLANG_CXX_LIBRARY': 'libc++',
526526
},
527527
}],

0 commit comments

Comments
 (0)