Merge branch 'GoaLitiuM-win_dev_build_speed_fix'
This commit is contained in:
@@ -484,12 +484,6 @@ namespace Flax.Build.Platforms
|
|||||||
// Remove unreferenced COMDAT
|
// Remove unreferenced COMDAT
|
||||||
commonArgs.Add("/Zc:inline");
|
commonArgs.Add("/Zc:inline");
|
||||||
|
|
||||||
// Favor Small Code, Favor Fast Code
|
|
||||||
if (compileEnvironment.FavorSizeOrSpeed == FavorSizeOrSpeed.FastCode)
|
|
||||||
commonArgs.Add("/Ot");
|
|
||||||
else if (compileEnvironment.FavorSizeOrSpeed == FavorSizeOrSpeed.SmallCode)
|
|
||||||
commonArgs.Add("/Os");
|
|
||||||
|
|
||||||
// Run-Time Error Checks
|
// Run-Time Error Checks
|
||||||
if (compileEnvironment.RuntimeChecks && !compileEnvironment.CompileAsWinRT)
|
if (compileEnvironment.RuntimeChecks && !compileEnvironment.CompileAsWinRT)
|
||||||
commonArgs.Add("/RTC1");
|
commonArgs.Add("/RTC1");
|
||||||
@@ -510,10 +504,16 @@ namespace Flax.Build.Platforms
|
|||||||
commonArgs.Add("/Zo");
|
commonArgs.Add("/Zo");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Favor Small Code, Favor Fast Code
|
||||||
|
if (compileEnvironment.FavorSizeOrSpeed == FavorSizeOrSpeed.FastCode)
|
||||||
|
commonArgs.Add("/Ot");
|
||||||
|
else if (compileEnvironment.FavorSizeOrSpeed == FavorSizeOrSpeed.SmallCode)
|
||||||
|
commonArgs.Add("/Os");
|
||||||
if (compileEnvironment.Optimization)
|
if (compileEnvironment.Optimization)
|
||||||
{
|
{
|
||||||
// Enable Most Speed Optimizations
|
// Enable Most Speed Optimizations
|
||||||
commonArgs.Add("/Ox");
|
// Commented out due to /Og causing slow build times without /GL in development builds
|
||||||
|
//commonArgs.Add("/Ox");
|
||||||
|
|
||||||
// Generate Intrinsic Functions
|
// Generate Intrinsic Functions
|
||||||
commonArgs.Add("/Oi");
|
commonArgs.Add("/Oi");
|
||||||
@@ -523,6 +523,9 @@ namespace Flax.Build.Platforms
|
|||||||
|
|
||||||
if (compileEnvironment.WholeProgramOptimization)
|
if (compileEnvironment.WholeProgramOptimization)
|
||||||
{
|
{
|
||||||
|
// Enable Most Speed Optimizations
|
||||||
|
commonArgs.Add("/Ox");
|
||||||
|
|
||||||
// Whole Program Optimization
|
// Whole Program Optimization
|
||||||
commonArgs.Add("/GL");
|
commonArgs.Add("/GL");
|
||||||
}
|
}
|
||||||
@@ -908,7 +911,7 @@ namespace Flax.Build.Platforms
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
args.Add("/DEBUG");
|
args.Add("/DEBUG"); // Same as /DEBUG:FULL
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use Program Database
|
// Use Program Database
|
||||||
|
|||||||
Reference in New Issue
Block a user