mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05: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:
1 file changed
+6
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user