FASTBuild: allow enabling light cache for non-MSVC

Starting from version 1.19 FASTBuild now
supports `UseLightCache_Experimental` for
non-MSVC compilers: https://www.fastbuild.org/docs/changelog.html
This commit is contained in:
Eduard Voronkin
2026-03-04 09:46:28 -05:00
committed by Brad King
parent 086fff1543
commit e894c7e163
+6 -1
View File
@@ -904,7 +904,12 @@ void cmGlobalFastbuildGenerator::WriteCompilers()
WriteVariable("AllowDistribution", "false", 1);
}
if (compilerDef.UseLightCache && compilerDef.CompilerFamily == "msvc") {
if (compilerDef.UseLightCache &&
(compilerDef.CompilerFamily == "msvc" ||
// FASTBuild supports Light Cache for non-MSVC compilers starting from
// version 1.19
cmSystemTools::VersionCompare(cmSystemTools::OP_GREATER_EQUAL,
this->FastbuildVersion, "1.19"))) {
WriteVariable("UseLightCache_Experimental", "true", 1);
}
if (compilerDef.UseRelativePaths) {