Fixing an issue if running an x64 machine already

This commit is contained in:
Andrew Spiering
2023-09-17 15:53:48 -07:00
parent 183ab7738f
commit 69e54d7f88

View File

@@ -215,7 +215,7 @@ namespace Flax.Build
// So there is not a real great way to do this but if the first thing in this list is x64
// then lets assume we are building for it and thus should using that rid and that dotnet path
if (Configuration.BuildArchitectures != null && Configuration.BuildArchitectures[0] == TargetArchitecture.x64)
if (architecture == TargetArchitecture.ARM64 && (Configuration.BuildArchitectures != null && Configuration.BuildArchitectures[0] == TargetArchitecture.x64))
{
rid = $"osx-64";
dotnetPath = Path.Combine(dotnetPath, "x64");