Skip to content

Commit 4b2d10a

Browse files
authored
Fix Platform detection on MinGW+Windows (#65)
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.
1 parent bc37d54 commit 4b2d10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ target("doorstop")
5151

5252
if is_arch("i386") then
5353
add_shflags("-e _DllEntry", "-Wl,--enable-stdcall-fixup", {force=true})
54-
elseif is_arch("x86_64") then
54+
elseif is_arch("x64", "x86_64") then
5555
add_shflags("-e DllEntry", {force=true})
5656
end
5757
end

0 commit comments

Comments
 (0)