Skip to content

Fix Makefile.msc for ARM64 Windows#1224

Open
BraveChicken1 wants to merge 1 commit into
madler:developfrom
BraveChicken1:fix/msc-makefile
Open

Fix Makefile.msc for ARM64 Windows#1224
BraveChicken1 wants to merge 1 commit into
madler:developfrom
BraveChicken1:fix/msc-makefile

Conversation

@BraveChicken1
Copy link
Copy Markdown

This PR fixes the Windows ARM64 build with Microsoft Visual C++.

On ARM64 the -base:0x5A4C0000 flag is not allowed, it gives the following error: fatal error LNK1355: invalid base address 0x5A4C0000; ARM64 image cannot have base address below 4GB.

This PR introduces a new optional variables ARCH in the Makefile.msc. When the option is equal to arm64 the base flag is omitted. When the variable is not passed to the makefile, the behaviour remains the same as before, ensuring full backwards compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant