mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
FASTBuild: Disable caching and distribution in try_compile builds
This avoids hashing the whole toolchain and makes `try_compile` faster.
This commit is contained in:
1 parent
009f1ab0e3
commit
f6abf8044a
1 file changed
+4
@@ -893,6 +893,10 @@ void cmGlobalFastbuildGenerator::WriteCompilers()
|
||||
}
|
||||
WriteVariable("Executable", Quote(compilerPath), 1);
|
||||
WriteVariable("CompilerFamily", Quote(compilerDef.CompilerFamily), 1);
|
||||
if (this->GetCMakeInstance()->GetIsInTryCompile()) {
|
||||
WriteVariable("AllowCaching", "false", 1);
|
||||
WriteVariable("AllowDistribution", "false", 1);
|
||||
}
|
||||
|
||||
if (compilerDef.UseLightCache && compilerDef.CompilerFamily == "msvc") {
|
||||
WriteVariable("UseLightCache_Experimental", "true", 1);
|
||||
|
||||
Reference in new issue
Block a user