build,win: disable node pch with ccache

PR-URL: https://github.com/nodejs/node/pull/57224
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
Stefan Stojanovic 2025-02-27 20:45:15 +01:00 committed by GitHub
parent c7cf6778c7
commit 4edc6dbe71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,12 +69,16 @@
'NODE_PLATFORM="win32"',
'_UNICODE=1',
],
'msvs_precompiled_header': 'tools/msvs/pch/node_pch.h',
'msvs_precompiled_source': 'tools/msvs/pch/node_pch.cc',
'sources': [
'<(_msvs_precompiled_header)',
'<(_msvs_precompiled_source)',
],
'conditions': [
['clang != 1 or use_ccache_win != 1', {
'msvs_precompiled_header': 'tools/msvs/pch/node_pch.h',
'msvs_precompiled_source': 'tools/msvs/pch/node_pch.cc',
'sources': [
'<(_msvs_precompiled_header)',
'<(_msvs_precompiled_source)',
],
}]
]
}, { # POSIX
'defines': [ '__POSIX__' ],
}],