godotengine / godot-cpp

C++ bindings for the Godot script API
MIT License
1.7k stars 525 forks source link

Support arm64 target with MSVC #1534

Closed pkdawson closed 2 months ago

pkdawson commented 2 months ago

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)