Skip to content

Commit 9a724e6

Browse files
committed
build: compile with --gnu++17
Enables C++17 features.
1 parent ab71af3 commit 9a724e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common.gypi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
}],
383383
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
384384
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
385-
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
385+
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
386386
'defines': [ '__STDC_FORMAT_MACROS' ],
387387
'ldflags': [ '-rdynamic' ],
388388
'target_conditions': [
@@ -526,7 +526,7 @@
526526
['clang==1', {
527527
'xcode_settings': {
528528
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
529-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++14', # -std=gnu++14
529+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++17', # -std=gnu++17
530530
'CLANG_CXX_LIBRARY': 'libc++',
531531
},
532532
}],

0 commit comments

Comments
 (0)