mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
tools: do not pass invalid flag to C compiler
`-Wno-invalid-offsetof` is only valid for C++ and GCC warns about its usage for C. PR-URL: https://github.com/nodejs/node/pull/51409 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
parent
94f824a19d
commit
b180512aef
@ -1989,6 +1989,12 @@
|
||||
]
|
||||
}],
|
||||
],
|
||||
# -Wno-invalid-offsetof flag is not valid for C.
|
||||
# The flag is initially set in `toolchain.gypi` for all targets.
|
||||
'cflags!': [ '-Wno-invalid-offsetof' ],
|
||||
'xcode_settings': {
|
||||
'WARNING_CFLAGS!': ['-Wno-invalid-offsetof']
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'<(V8_ROOT)/third_party/zlib',
|
||||
|
Loading…
Reference in New Issue
Block a user