Skip to content

Commit

Permalink
Set -m64 flags on mingw (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Dec 21, 2023
1 parent 18f87b9 commit 5b23e36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toolchain/mingw-toolchain.xml
Expand Up @@ -43,6 +43,7 @@
<cppflag value="-std=c++11" if="HXCPP_CPP11" />
<cppflag value="-U__STRICT_ANSI__" />
<flag value="-m32" unless="HXCPP_M64"/>
<flag value="-m64" if="HXCPP_M64"/>
<flag value="-DHXCPP_M64" if="HXCPP_M64"/>
<flag value="-I${HXCPP}/include"/>
<objdir value="obj/mingw${OBJEXT}/"/>
Expand All @@ -56,6 +57,7 @@
<flag value="-debug" if="debug"/>
<flag value="--enable-auto-import"/>
<flag value="-m32" unless="HXCPP_M64"/>
<flag value="-m64" if="HXCPP_M64"/>
<flag value="-static" if="no_shared_libs"/>
<flag value="-static-libgcc" if="no_shared_libs"/>
<flag value="-static-libstdc++" if="no_shared_libs"/>
Expand All @@ -70,6 +72,7 @@
<flag value="-Wl,--enable-auto-import"/>
<flag value="-mwindows" if="SUBSYSTEMWINDOWS" />
<flag value="-m32" unless="HXCPP_M64"/>
<flag value="-m64" if="HXCPP_M64"/>
<flag value="-static" if="no_shared_libs"/>
<flag value="-static-libgcc" if="no_shared_libs" unless="linux_host"/>
<flag value="-static-libstdc++" if="no_shared_libs" unless="linux_host"/>
Expand Down

0 comments on commit 5b23e36

Please sign in to comment.