Skip to content

Commit 46624d2

Browse files
committed
Merge remote-tracking branch 'official-hxcpp/master'
2 parents 3f2c90f + 4f73919 commit 46624d2

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

toolchain/mingw-toolchain.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<cppflag value="-std=c++11" if="HXCPP_CPP11" />
4444
<cppflag value="-U__STRICT_ANSI__" />
4545
<flag value="-m32" unless="HXCPP_M64"/>
46+
<flag value="-m64" if="HXCPP_M64"/>
4647
<flag value="-DHXCPP_M64" if="HXCPP_M64"/>
4748
<flag value="-I${HXCPP}/include"/>
4849
<objdir value="obj/mingw${OBJEXT}/"/>
@@ -56,6 +57,7 @@
5657
<flag value="-debug" if="debug"/>
5758
<flag value="--enable-auto-import"/>
5859
<flag value="-m32" unless="HXCPP_M64"/>
60+
<flag value="-m64" if="HXCPP_M64"/>
5961
<flag value="-static" if="no_shared_libs"/>
6062
<flag value="-static-libgcc" if="no_shared_libs"/>
6163
<flag value="-static-libstdc++" if="no_shared_libs"/>
@@ -70,20 +72,21 @@
7072
<flag value="-Wl,--enable-auto-import"/>
7173
<flag value="-mwindows" if="SUBSYSTEMWINDOWS" />
7274
<flag value="-m32" unless="HXCPP_M64"/>
75+
<flag value="-m64" if="HXCPP_M64"/>
7376
<flag value="-static" if="no_shared_libs"/>
74-
<flag value="-static-libgcc" if="no_shared_libs" unless="linux_host"/>
75-
<flag value="-static-libstdc++" if="no_shared_libs" unless="linux_host"/>
76-
<flag value="-static-libgcc" if="linux_host"/>
77-
<flag value="-static-libstdc++" if="linux_host"/>
77+
<flag value="-static-libgcc" if="no_shared_libs" />
78+
<flag value="-static-libstdc++" if="no_shared_libs" />
7879
<flag value="-L${MINGW_ROOT}/lib/libs" />
7980
<ext value=".exe"/>
8081
<outflag value="-o "/>
8182
</linker>
8283

83-
<copyFile toolId="exe" name="libgcc_s_dw2-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs"/>
84+
<copyFile toolId="exe" name="libgcc_s_dw2-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs || HXCPP_M64" />
85+
<copyFile toolId="exe" name="libgcc_s_seh-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" if="HXCPP_M64" unless="no_shared_libs"/>
8486
<copyFile toolId="exe" name="libstdc++-6.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs"/>
8587
<copyFile toolId="exe" name="libwinpthread-1.dll" from="${MINGW_ROOT}/sys-root/mingw/bin" allowMissing="true" unless="no_shared_libs"/>
8688
<copyFile toolId="exe" name="libwinpthread-1.dll" from="${MINGW_ROOT}/lib" allowMissing="true" unless="no_shared_libs"/>
89+
<copyFile toolId="exe" name="libwinpthread-1.dll" from="${MINGW_ROOT}/bin" allowMissing="true" unless="no_shared_libs"/>
8790

8891
<linker id="static_link" exe="ar" >
8992
<ext value="${LIBEXT}"/>

0 commit comments

Comments
 (0)