From 4edc6dbe71a129624d80ac056718c1f6b95926bd Mon Sep 17 00:00:00 2001 From: Stefan Stojanovic Date: Thu, 27 Feb 2025 20:45:15 +0100 Subject: [PATCH] build,win: disable node pch with ccache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/57224 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau --- node.gypi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/node.gypi b/node.gypi index 4904154695a..17d09d0feb3 100644 --- a/node.gypi +++ b/node.gypi @@ -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__' ], }],