From d55c3c462f363e0f04c0efcdffe89684d1caa1af Mon Sep 17 00:00:00 2001 From: Kriper1111 <31844440+Kriper1111@users.noreply.github.com> Date: Sat, 17 Aug 2024 09:44:00 +0300 Subject: [PATCH] fix: platform detection on MinGW+Windows 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. --- xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 8cd86b5..bbbc390 100644 --- a/xmake.lua +++ b/xmake.lua @@ -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