Improve 82ee84ad39 to support incremental linking
This commit is contained in:
@@ -281,10 +281,10 @@ namespace Flax.Build
|
||||
options.CompileEnv.IntrinsicFunctions = true;
|
||||
options.CompileEnv.BufferSecurityCheck = true;
|
||||
options.CompileEnv.Inlining = true;
|
||||
options.CompileEnv.WholeProgramOptimization = true;
|
||||
options.CompileEnv.WholeProgramOptimization = false;
|
||||
|
||||
options.LinkEnv.DebugInformation = true;
|
||||
options.LinkEnv.LinkTimeCodeGeneration = true;
|
||||
options.LinkEnv.LinkTimeCodeGeneration = false;
|
||||
options.LinkEnv.UseIncrementalLinking = true;
|
||||
options.LinkEnv.Optimization = true;
|
||||
break;
|
||||
|
||||
@@ -526,6 +526,12 @@ namespace Flax.Build.Platforms
|
||||
// Whole Program Optimization
|
||||
commonArgs.Add("/GL");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Enable SEE2 and other code optimizations but without breaking incremental linking
|
||||
//commonArgs.Add("/Og"); // Results in D9035 warning
|
||||
commonArgs.Add("/O2");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user