Skip to content

Commit a014540

Browse files
committed
build: compile with --gnu++17
Enables C++17 features.
1 parent f26c2ce commit a014540

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common.gypi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@
385385
}],
386386
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
387387
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
388-
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
388+
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
389389
'defines': [ '__STDC_FORMAT_MACROS' ],
390390
'ldflags': [ '-rdynamic' ],
391391
'target_conditions': [
@@ -529,7 +529,7 @@
529529
['clang==1', {
530530
'xcode_settings': {
531531
'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
532-
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++14', # -std=gnu++14
532+
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++17', # -std=gnu++17
533533
'CLANG_CXX_LIBRARY': 'libc++',
534534
},
535535
}],

0 commit comments

Comments
 (0)