File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -1209,26 +1209,27 @@ common_setup_arch() {
1209
1209
# Lua does use this one, which results in compiler warnings. But this is OK because
1210
1210
# the Windows build of Lua is only used in developer gamelogic builds, and Microsoft
1211
1211
# supports %lld since Visual Studio 2013.
1212
+ common_setup_windows () {
1213
+ LD=" ${HOST} -ld"
1214
+ AR=" ${HOST} -ar"
1215
+ RANLIB=" ${HOST} -ranlib"
1216
+ CFLAGS+=' -D__USE_MINGW_ANSI_STDIO=0'
1217
+ CMAKE_TOOLCHAIN=" ${SCRIPT_DIR} /../cmake/cross-toolchain-mingw${BITNESS} .cmake"
1218
+ }
1219
+
1212
1220
common_setup_msvc () {
1213
1221
LIBS_SHARED=' ON'
1214
1222
LIBS_STATIC=' OFF'
1215
1223
# Libtool bug prevents -static-libgcc from being set in LDFLAGS
1216
1224
CC=" ${HOST} -gcc -static-libgcc"
1217
1225
CXX=" ${HOST} -g++ -static-libgcc"
1218
- LD=" ${HOST} -ld"
1219
- AR=" ${HOST} -ar"
1220
- RANLIB=" ${HOST} -ranlib"
1221
- CFLAGS+=' -D__USE_MINGW_ANSI_STDIO=0'
1226
+ common_setup_windows
1222
1227
}
1223
1228
1224
1229
common_setup_mingw () {
1225
1230
CC=" ${HOST} -gcc"
1226
1231
CXX=" ${HOST} -g++"
1227
- LD=" ${HOST} -ld"
1228
- AR=" ${HOST} -ar"
1229
- RANLIB=" ${HOST} -ranlib"
1230
- CFLAGS+=' -D__USE_MINGW_ANSI_STDIO=0'
1231
- CMAKE_TOOLCHAIN=" ${SCRIPT_DIR} /../cmake/cross-toolchain-mingw${BITNESS} .cmake"
1232
+ common_setup_windows
1232
1233
}
1233
1234
1234
1235
common_setup_macos () {
You can’t perform that action at this time.
0 commit comments