|
|
@@ -1220,6 +1220,13 @@ cmFastbuildNormalTargetGenerator::GenerateObjects()
|
|
|
|
|
|
std::string const staticCheckOptions = ComputeCodeCheckOptions(srcFile);
|
|
|
|
|
|
+ auto const isDisabled = [this](char const* prop) {
|
|
|
+ auto const propValue = this->GeneratorTarget->GetProperty(prop);
|
|
|
+ return propValue && propValue.IsOff();
|
|
|
+ };
|
|
|
+ bool const disableCaching = isDisabled("FASTBUILD_CACHING");
|
|
|
+ bool const disableDistribution = isDisabled("FASTBUILD_DISTRIBUTION");
|
|
|
+
|
|
|
for (auto const& arch : this->GetArches()) {
|
|
|
std::string const compileOptions = GetCompileOptions(srcFile, arch);
|
|
|
|
|
|
@@ -1261,6 +1268,12 @@ cmFastbuildNormalTargetGenerator::GenerateObjects()
|
|
|
if (!objectListNode.CompilerOptions.empty()) {
|
|
|
continue;
|
|
|
}
|
|
|
+ if (disableCaching) {
|
|
|
+ objectListNode.AllowCaching = false;
|
|
|
+ }
|
|
|
+ if (disableDistribution) {
|
|
|
+ objectListNode.AllowDistribution = false;
|
|
|
+ }
|
|
|
|
|
|
objectListNode.CompilerOutputPath = objOutDirWithPossibleSubdir;
|
|
|
LogMessage(cmStrCat("Output path: ", objectListNode.CompilerOutputPath));
|