Fix var name typo and make improve class lib and platforms tools searching for Mono AOT

This commit is contained in:
Wojtek Figat
2023-04-13 08:27:49 +02:00
parent d9855f2ed6
commit cf397e1cc7
3 changed files with 33 additions and 11 deletions

View File

@@ -1032,7 +1032,7 @@ namespace Flax.Build.Platforms
{
case CSharpOptions.ActionTypes.MonoCompile:
{
var aotCompilerPath = Path.Combine(options.PlatformsToolsPath, "mono-aot-cross.exe");
var aotCompilerPath = Path.Combine(options.PlatformToolsPath, "mono-aot-cross.exe");
// Setup options
var monoAotMode = "full";
@@ -1048,7 +1048,7 @@ namespace Flax.Build.Platforms
}
// Run cross-compiler compiler
int result = Utilities.Run(aotCompilerPath, $"{aotCompilerArgs} \"{options.InputFiles[0]}\"", null, options.PlatformsToolsPath, Utilities.RunOptions.AppMustExist | Utilities.RunOptions.ConsoleLogOutput, envVars);
int result = Utilities.Run(aotCompilerPath, $"{aotCompilerArgs} \"{options.InputFiles[0]}\"", null, options.PlatformToolsPath, Utilities.RunOptions.AppMustExist | Utilities.RunOptions.ConsoleLogOutput, envVars);
return result != 0;
}
}