mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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:
committed by
Brad King
parent
086fff1543
commit
e894c7e163
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user