node/common_node.gypi
Michaël Zasso e4b187433d
build: compile with C++20 support
PR-URL: https://github.com/nodejs/node/pull/52838
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
2024-05-08 09:02:02 +02:00

16 lines
449 B
Python

{
'target_defaults': {
'conditions': [
# Override common.gypi config to use C++20 for Node.js core only.
['OS in "linux freebsd openbsd solaris android aix os400 cloudabi"', {
'cflags_cc!': ['-std=gnu++17'],
'cflags_cc': ['-std=gnu++20'],
}],
['OS=="mac" and clang==1', {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++20', # -std=gnu++20
},
}],
],
},
}