Limit MSVC compiler code generation threads to one per file
This commit is contained in:
@@ -449,6 +449,9 @@ namespace Flax.Build.Platforms
|
|||||||
// Compile Without Linking
|
// Compile Without Linking
|
||||||
commonArgs.Add("/c");
|
commonArgs.Add("/c");
|
||||||
|
|
||||||
|
// Use one thread per process
|
||||||
|
commonArgs.Add("/cgthreads1");
|
||||||
|
|
||||||
// C++ version
|
// C++ version
|
||||||
switch (compileEnvironment.CppVersion)
|
switch (compileEnvironment.CppVersion)
|
||||||
{
|
{
|
||||||
@@ -776,6 +779,9 @@ namespace Flax.Build.Platforms
|
|||||||
// Report internal compiler errors
|
// Report internal compiler errors
|
||||||
args.Add("/ERRORREPORT:PROMPT");
|
args.Add("/ERRORREPORT:PROMPT");
|
||||||
|
|
||||||
|
// Use maximum supported number of threads for linking
|
||||||
|
args.Add("/cgthreads:8");
|
||||||
|
|
||||||
// Output File Name
|
// Output File Name
|
||||||
args.Add(string.Format("/OUT:\"{0}\"", outputFilePath));
|
args.Add(string.Format("/OUT:\"{0}\"", outputFilePath));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user