--- meson-1.2.0/mesonbuild/compilers/compilers.py~ +++ meson-1.2.0/mesonbuild/compilers/compilers.py @@ -823,7 +823,7 @@ extra_args = [] with TemporaryDirectoryWinProof(dir=temp_dir) as tmpdirname: - no_ccache = False + no_ccache = True if isinstance(code, str): srcname = os.path.join(tmpdirname, 'testfile.' + self.default_suffix) @@ -862,8 +862,8 @@ mlog.debug('Code:\n', contents) os_env = os.environ.copy() os_env['LC_ALL'] = 'C' - if no_ccache: - os_env['CCACHE_DISABLE'] = '1' + #if no_ccache: + # os_env['CCACHE_DISABLE'] = '1' p, stdo, stde = Popen_safe_logged(command_list, msg='Command line', cwd=tmpdirname, env=os_env) result = CompileResult(stdo, stde, command_list, p.returncode, input_name=srcname) --- meson-1.2.0/mesonbuild/envconfig.py~ 2023-06-28 07:48:20.000000000 -0700 +++ meson-1.2.0/mesonbuild/envconfig.py 2024-03-25 20:35:31.348914411 -0700 @@ -411,7 +411,7 @@ subprocess.check_call(['ccache', '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) except (OSError, subprocess.CalledProcessError): return [] - return ['ccache'] + return [] @staticmethod def detect_sccache() -> T.List[str]: