Disable clang color if using a build machine

#jira none
#rb none
#fyi Ryan.Durand

[CL 16931324 by Brandon Schaefer in ue5-main branch]
This commit is contained in:
Brandon Schaefer
2021-07-22 17:24:46 -04:00
parent e111db2915
commit 339715043e

View File

@@ -579,6 +579,12 @@ namespace UnrealBuildTool
Options |= LinuxToolChainOptions.DisableSplitDebugInfoWithObjCopy;
}
// Disable color logging if we are on a build machine
if (Environment.GetEnvironmentVariable("IsBuildMachine") == "1")
{
Log.ColorConsoleOutput = false;
}
return new LinuxToolChain(Target.Architecture, SDK, Target.LinuxPlatform.bPreservePSYM, Options);
}