Skip to content

Commit 6a2e4c5

Browse files
StefanStojanovicaduh95
authored andcommitted
build,win: disable node pch with ccache
PR-URL: #57224 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent e80bbb7 commit 6a2e4c5

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

node.gypi

+10-6
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,16 @@
6969
'NODE_PLATFORM="win32"',
7070
'_UNICODE=1',
7171
],
72-
'msvs_precompiled_header': 'tools/msvs/pch/node_pch.h',
73-
'msvs_precompiled_source': 'tools/msvs/pch/node_pch.cc',
74-
'sources': [
75-
'<(_msvs_precompiled_header)',
76-
'<(_msvs_precompiled_source)',
77-
],
72+
'conditions': [
73+
['clang != 1 or use_ccache_win != 1', {
74+
'msvs_precompiled_header': 'tools/msvs/pch/node_pch.h',
75+
'msvs_precompiled_source': 'tools/msvs/pch/node_pch.cc',
76+
'sources': [
77+
'<(_msvs_precompiled_header)',
78+
'<(_msvs_precompiled_source)',
79+
],
80+
}]
81+
]
7882
}, { # POSIX
7983
'defines': [ '__POSIX__' ],
8084
}],

0 commit comments

Comments
 (0)