Skip to content

Commit

Permalink
reference directly in the target
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Nov 30, 2024
1 parent 031d2ef commit d925cbb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
38 changes: 18 additions & 20 deletions cpp_17.gypi
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
{
'target_defaults': {
# node-gyp sets the standard for us and ensures that its include file comes last
# this is the only reliable way to override it
'cflags_cc/': [ ['exclude', '^-std=(?!gnu\+\+17)'] ],
'cflags_cc':[ '-std=gnu++17' ],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [
'-std=gnu++17'
],
'OTHER_CPLUSPLUSFLAGS/': [ ['exclude', '^-std=(?!gnu\+\+17)'] ],
},
'msvs_settings': {
'AdditionalOptions': [
'/std:c++17'
],
'AdditionalOptions/': [
['exclude', '^[/\-]std:(?!c\+\+17)']
]
}
}
# node-gyp sets the standard for us and ensures that its include file comes last
# this is the only reliable way to override it
'cflags_cc/': [ ['exclude', '^-std=(?!gnu\+\+17)'] ],
'cflags_cc':[ '-std=gnu++17' ],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [
'-std=gnu++17'
],
'OTHER_CPLUSPLUSFLAGS/': [ ['exclude', '^-std=(?!gnu\+\+17)'] ],
},
'msvs_settings': {
'AdditionalOptions': [
'/std:c++17'
],
'AdditionalOptions/': [
['exclude', '^[/\-]std:(?!c\+\+17)']
]
}
}
2 changes: 1 addition & 1 deletion deps/libproj/libproj.gyp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"includes": [
"../../common.gypi",
"../../cpp_17.gypi"
],
"targets": [
{
"includes": [ "../../cpp_17.gypi" ],
"target_name": "libproj",
"type": "static_library",
"cflags_cc": ["-Wno-attributes"],
Expand Down

0 comments on commit d925cbb

Please sign in to comment.