Add compile flag for whole program optimization

This commit is contained in:
GoaLitiuM
2021-01-13 20:37:19 +02:00
parent 049450e31b
commit d901c11570
2 changed files with 11 additions and 2 deletions

View File

@@ -56,6 +56,11 @@ namespace Flax.Build.NativeCpp
/// </summary>
public bool Optimization = false;
/// <summary>
/// Enables the whole program optimization.
/// </summary>
public bool WholeProgramOptimization = false;
/// <summary>
/// Enables functions level linking support.
/// </summary>
@@ -131,6 +136,7 @@ namespace Flax.Build.NativeCpp
RuntimeTypeInfo = RuntimeTypeInfo,
Inlining = Inlining,
Optimization = Optimization,
WholeProgramOptimization = WholeProgramOptimization,
FunctionLevelLinking = FunctionLevelLinking,
DebugInformation = DebugInformation,
UseDebugCRT = UseDebugCRT,