Skip to content

Commit

Permalink
build: make sure this suppresses semi errors
Browse files Browse the repository at this point in the history
  • Loading branch information
trevnorris committed Oct 4, 2024
1 parent 2789dd1 commit e9cad6c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -514,15 +514,14 @@
# Putting these explicitly here so not to depend on `common.gypi`.
# `common.gypi` need to be more general because it is used to build userland native addons.
# Refs: https://github.com/nodejs/node-gyp/issues/1118
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-Wno-c++98-compat-extra-semi', ],
'xcode_settings': {
'WARNING_CFLAGS': [
'-Wall',
'-Wendif-labels',
'-W',
'-Wno-unused-parameter',
'-Werror=undefined-inline',
'-Werror=extra-semi',
'-Wno-c++98-compat-extra-semi',
],
},
Expand All @@ -538,7 +537,7 @@

'conditions': [
['clang==0 and OS!="win"', {
'cflags': [ '-Wno-restrict', ],
'cflags': [ '-Wno-restrict', '-Wno-c++98-compat-extra-semi', ],
}],
# Pointer authentication for ARM64.
['target_arch=="arm64"', {
Expand All @@ -561,6 +560,7 @@
],
}],
['OS=="linux" and clang==1', {
'cflags': [ '-Wno-c++98-compat-extra-semi', ],
'libraries': ['-latomic'],
}],
],
Expand Down Expand Up @@ -631,7 +631,7 @@

'conditions': [
[ 'error_on_warn=="true"', {
'cflags': ['-Werror'],
'cflags': ['-Werror', '-Wno-c++98-compat-extra-semi'],
'xcode_settings': {
'WARNING_CFLAGS': [ '-Werror' ],
},
Expand Down
7 changes: 6 additions & 1 deletion node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

'conditions': [
[ 'clang==1', {
'cflags': [ '-Werror=undefined-inline', '-Werror=extra-semi']
'cflags': [ '-Werror=undefined-inline', '-Wno-c++98-compat-extra-semi']
}],
[ '"<(_type)"=="executable"', {
'msvs_settings': {
Expand Down Expand Up @@ -338,6 +338,11 @@

[ 'node_shared_otlp_http_exporter=="false"', {
'dependencies': [ 'deps/opentelemetry-cpp/otlp-http-exporter.gyp:otlp-http-exporter' ],
'direct_dependent_settings': {
'cflags': [
'-Wno-c++98-compat-extra-semi',
],
},
'conditions': [
[ 'force_load=="true"', {
'xcode_settings': {
Expand Down

0 comments on commit e9cad6c

Please sign in to comment.