Skip to content

Commit

Permalink
Fix Platform detection on MinGW+Windows (#65)
Browse files Browse the repository at this point in the history
Considers both `x86_64` and `x64` as the 64 bit platform, allowing
xmake to set proper linker flags for mingw compiler and add the
entry point properly.
  • Loading branch information
Kriper1111 authored Jan 29, 2025
1 parent bc37d54 commit 4b2d10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ target("doorstop")

if is_arch("i386") then
add_shflags("-e _DllEntry", "-Wl,--enable-stdcall-fixup", {force=true})
elseif is_arch("x86_64") then
elseif is_arch("x64", "x86_64") then
add_shflags("-e DllEntry", {force=true})
end
end
Expand Down

0 comments on commit 4b2d10a

Please sign in to comment.