From e68fcac919b332c7f9469672a243d2aab1bfea0a Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 18 Mar 2022 21:27:54 -0400 Subject: compilers: Make sure to not use ccache in compiler checks ccache was used in all command lines but disabled using CCACHE_DISABLE in Compiler.compile() method. Wrapping invokations still has a cost, especially on Windows. With sccache things are even worse because CCACHE_DISABLE was not respected at all, making configure *extremely* slow on Windows when sccache is installed. --- mesonbuild/compilers/rust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/rust.py') diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py index 3cd73f7b9..9e5ebc894 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -110,7 +110,7 @@ class RustCompiler(Compiler): return rust_buildtype_args[buildtype] def get_sysroot(self) -> str: - cmd = self.exelist + ['--print', 'sysroot'] + cmd = self.get_exelist(ccache=False) + ['--print', 'sysroot'] p, stdo, stde = Popen_safe(cmd) return stdo.split('\n', maxsplit=1)[0] -- cgit v1.2.3