Skip to content

Commit 4651cd7

Browse files
refacktargos
authored andcommitted
build: add -Werror=undefined-inline to clang builds
PR-URL: #23961 Refs: #23954 Refs: #23910 Refs: #23880 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent ef8b5b4 commit 4651cd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

node.gypi

+4
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@
3232
'-Wendif-labels',
3333
'-W',
3434
'-Wno-unused-parameter',
35+
'-Werror=undefined-inline',
3536
],
3637
},
3738
'conditions': [
39+
['clang==1', {
40+
'cflags': [ '-Werror=undefined-inline', ]
41+
}],
3842
[ 'node_shared=="false"', {
3943
'msvs_settings': {
4044
'VCManifestTool': {

0 commit comments

Comments
 (0)