Since Godot 4.3 will have an official Windows ARM64 build, this seems relevant now.
If you try an unsupported arch, SCons will raise MSVCUnsupportedTargetArch, so I didn't add any redundant checks.
Verified that it now builds for the correct arch without any further changes:
Microsoft (R) COFF/PE Dumper Version 14.40.33812.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file libgdexample.windows.template_debug.arm64.dll
PE signature found
File Type: DLL
FILE HEADER VALUES
AA64 machine (ARM64)
Since Godot 4.3 will have an official Windows ARM64 build, this seems relevant now.
If you try an unsupported arch, SCons will raise
MSVCUnsupportedTargetArch
, so I didn't add any redundant checks.Verified that it now builds for the correct arch without any further changes: