From 2853af20f6c7c358d11a595d10b7717fc0026632 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 28 Jan 2024 01:23:58 +0100 Subject: [PATCH] Tweak iOS AOT options --- Source/Tools/Flax.Build/Platforms/iOS/iOSToolchain.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/Tools/Flax.Build/Platforms/iOS/iOSToolchain.cs b/Source/Tools/Flax.Build/Platforms/iOS/iOSToolchain.cs index fb25560ec..c663946be 100644 --- a/Source/Tools/Flax.Build/Platforms/iOS/iOSToolchain.cs +++ b/Source/Tools/Flax.Build/Platforms/iOS/iOSToolchain.cs @@ -84,7 +84,7 @@ namespace Flax.Build.Platforms // Setup options var monoAotMode = "full"; var monoDebugMode = options.EnableDebugSymbols ? "soft-debug" : "nodebug"; - var aotCompilerArgs = $"--aot={monoAotMode},asmonly,verbose,stats,print-skipped,{monoDebugMode} -O=all"; + var aotCompilerArgs = $"--aot={monoAotMode},asmonly,verbose,stats,print-skipped,{monoDebugMode} -O=float32"; if (options.EnableDebugSymbols || options.EnableToolDebug) aotCompilerArgs = "--debug " + aotCompilerArgs; var envVars = new Dictionary(); @@ -97,13 +97,7 @@ namespace Flax.Build.Platforms // Run cross-compiler compiler (outputs assembly code) int result = Utilities.Run(aotCompilerPath, $"{aotCompilerArgs} \"{inputFile}\"", null, inputFileFolder, Utilities.RunOptions.AppMustExist | Utilities.RunOptions.ConsoleLogOutput, envVars); if (result != 0) - { - // Try without optimizations as a fallback - aotCompilerArgs = aotCompilerArgs.Replace("-O=all", ""); - result = Utilities.Run(aotCompilerPath, $"{aotCompilerArgs} \"{inputFile}\"", null, inputFileFolder, Utilities.RunOptions.AppMustExist | Utilities.RunOptions.ConsoleLogOutput, envVars); - if (result != 0) - return true; - } + return true; // Get build args for iOS var clangArgs = new List();