Skip to content

Commit c9fad31

Browse files
authored
Remove all but 1 use of wine (#1705)
1 parent db6fe73 commit c9fad31

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

backend/coreapp/compilers.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def available_platforms() -> List[Platform]:
406406
'echo "compiler_path=${COMPILER_DIR//\\//\\\\}" >> SN.INI && '
407407
'echo "assembler_path=${COMPILER_DIR//\\//\\\\}" >> SN.INI && '
408408
'echo "tmpdir=/tmp" >> SN.INI && '
409-
'SN_PATH=. ${WINE} ${COMPILER_DIR}/CCPSX.EXE -v -c ${COMPILER_FLAGS} "${INPUT}" -o "${OUTPUT}bj" && '
409+
'SN_PATH=. ${WIBO} ${COMPILER_DIR}/CCPSX.EXE -v -c ${COMPILER_FLAGS} "${INPUT}" -o "${OUTPUT}bj" && '
410410
'${COMPILER_DIR}/psyq-obj-parser "${OUTPUT}"bj -o "${OUTPUT}"'
411411
)
412412

@@ -520,7 +520,7 @@ def available_platforms() -> List[Platform]:
520520
DREAMCAST_CC_V50R10 = (
521521
'cat "$INPUT" | unix2dos > dos_src.c && '
522522
"cp -r ${COMPILER_DIR}/bin/* . && "
523-
"(SHC_LIB=. SHC_TMP=. ${WINE} ${COMPILER_DIR}/bin/shc.exe dos_src.c ${COMPILER_FLAGS} -comment=nonest -cpu=sh4 -division=cpu -endian=little -extra=a=1800 -pic=0 -macsave=0 -sjis -string=const -object=dos_src.obj) && "
523+
"(SHC_LIB=. SHC_TMP=. ${WIBO} ${COMPILER_DIR}/bin/shc.exe dos_src.c ${COMPILER_FLAGS} -comment=nonest -cpu=sh4 -division=cpu -endian=little -extra=a=1800 -pic=0 -macsave=0 -sjis -string=const -object=dos_src.obj) && "
524524
"${WIBO} ${COMPILER_DIR}/bin/elfcnv.exe dos_src.obj ${OUTPUT}"
525525
)
526526

@@ -529,7 +529,7 @@ def available_platforms() -> List[Platform]:
529529
DREAMCAST_CC = (
530530
'cat "$INPUT" | unix2dos > dos_src.c && '
531531
"cp -r ${COMPILER_DIR}/bin/* . && "
532-
"(SHC_LIB=. SHC_TMP=. ${WINE} ${COMPILER_DIR}/bin/shc.exe dos_src.c ${COMPILER_FLAGS} -comment=nonest -cpu=sh4 -division=cpu -fpu=single -endian=little -extra=a=1800 -pic=0 -macsave=0 -sjis -string=const -aggressive=2 -object=dos_src.obj) && "
532+
"(SHC_LIB=. SHC_TMP=. ${WIBO} ${COMPILER_DIR}/bin/shc.exe dos_src.c ${COMPILER_FLAGS} -comment=nonest -cpu=sh4 -division=cpu -fpu=single -endian=little -extra=a=1800 -pic=0 -macsave=0 -sjis -string=const -aggressive=2 -object=dos_src.obj) && "
533533
"${WIBO} ${COMPILER_DIR}/bin/elfcnv.exe dos_src.obj ${OUTPUT}"
534534
)
535535

@@ -552,7 +552,7 @@ def available_platforms() -> List[Platform]:
552552

553553
IOP_GCC2952_102 = GCCPS2Compiler(
554554
id="iop-gcc2.95.2-102",
555-
cc='${WINE} "${COMPILER_DIR}"/bin/iop-gcc.exe -c -B "${COMPILER_DIR}"/lib/gcc-lib/mipsel-scei-elfl/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
555+
cc='${WIBO} "${COMPILER_DIR}"/bin/iop-gcc.exe -c -B "${COMPILER_DIR}"/lib/gcc-lib/mipsel-scei-elfl/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
556556
)
557557

558558
EE_GCC29_990721 = GCCPS2Compiler(
@@ -583,27 +583,27 @@ def available_platforms() -> List[Platform]:
583583

584584
EE_GCC2952_273A = GCCPS2Compiler(
585585
id="ee-gcc2.95.2-273a",
586-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
586+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
587587
)
588588

589589
EE_GCC2952_274 = GCCPS2Compiler(
590590
id="ee-gcc2.95.2-274",
591-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
591+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
592592
)
593593

594594
EE_GCC2953_107 = GCCPS2Compiler(
595595
id="ee-gcc2.95.3-107",
596-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
596+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
597597
)
598598

599599
EE_GCC2953_114 = GCCPS2Compiler(
600600
id="ee-gcc2.95.3-114",
601-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
601+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
602602
)
603603

604604
EE_GCC2953_136 = GCCPS2Compiler(
605605
id="ee-gcc2.95.3-136",
606-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
606+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
607607
)
608608

609609
EE_GCC296 = GCCPS2Compiler(
@@ -628,7 +628,7 @@ def available_platforms() -> List[Platform]:
628628

629629
MWCPS2_23_991202 = MWCCPS2Compiler(
630630
id="mwcps2-2.3-991202",
631-
cc='${WINE} "${COMPILER_DIR}/mwccmips.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"',
631+
cc='${WIBO} "${COMPILER_DIR}/mwccmips.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"',
632632
)
633633

634634
MWCPS2_CC = '${WIBO} "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"'
@@ -753,7 +753,7 @@ def available_platforms() -> List[Platform]:
753753
PSPSNC_1_2_7503_0 = GCCCompiler(
754754
id="pspsnc_1.2.7503.0",
755755
platform=PSP,
756-
cc='${WINE} ${COMPILER_DIR}/pspsnc.exe -c -td=. ${COMPILER_FLAGS} -o "${OUTPUT}" "${INPUT}"',
756+
cc='${WIBO} ${COMPILER_DIR}/pspsnc.exe -c -td=. ${COMPILER_FLAGS} -o "${OUTPUT}" "${INPUT}"',
757757
)
758758

759759
MWCCPSP_CC = (
@@ -1210,7 +1210,7 @@ def available_platforms() -> List[Platform]:
12101210
cc=MWCCEPPC_CC,
12111211
)
12121212

1213-
PRODG_NGC_CC = "SN_NGC_PATH=${COMPILER_DIR} ${WINE} ${COMPILER_DIR}/ngccc.exe ${COMPILER_FLAGS} -o ${OUTPUT} ${INPUT}"
1213+
PRODG_NGC_CC = "SN_NGC_PATH=${COMPILER_DIR} ${WIBO} ${COMPILER_DIR}/ngccc.exe ${COMPILER_FLAGS} -o ${OUTPUT} ${INPUT}"
12141214

12151215
PRODG_35 = GCCGCCompiler(
12161216
id="prodg_35",
@@ -1360,7 +1360,7 @@ def available_platforms() -> List[Platform]:
13601360
cc=MWCCARM_CC,
13611361
)
13621362

1363-
CL_WIN = '${WINE} "${COMPILER_DIR}/Bin/CL.EXE" /c /nologo /I"Z:${COMPILER_DIR}/Include/" ${COMPILER_FLAGS} /Fd"Z:/tmp/" /Bk"Z:/tmp/" /Fo"Z:${OUTPUT}" "Z:${INPUT}"'
1363+
CL_WIN = '${WIBO} "${COMPILER_DIR}/Bin/CL.EXE" /c /nologo /I"Z:${COMPILER_DIR}/Include/" ${COMPILER_FLAGS} /Fd"Z:/tmp/" /Bk"Z:/tmp/" /Fo"Z:${OUTPUT}" "Z:${INPUT}"'
13641364

13651365
MSVC40 = MSVCCompiler(
13661366
id="msvc4.0",
@@ -1442,12 +1442,12 @@ def available_platforms() -> List[Platform]:
14421442
# Watcom doesn't like '/' in paths passed to it so we need to replace them.
14431443
WATCOM_ARGS = ' -zq -i="Z:${COMPILER_DIR}/h" -i="Z:${COMPILER_DIR}/h/nt" ${COMPILER_FLAGS} -fo"Z:${OUTPUT}" "Z:${INPUT}"'
14441444
WATCOM_CC = (
1445-
'${WINE} "${COMPILER_DIR}/binnt/wcc386.exe" $(echo "'
1445+
'${WIBO} "${COMPILER_DIR}/binnt/wcc386.exe" $(echo "'
14461446
+ WATCOM_ARGS
14471447
+ "\" | sed 's:/:\\\\:g')"
14481448
)
14491449
WATCOM_CXX = (
1450-
'${WINE} "${COMPILER_DIR}/binnt/wpp386.exe" $(echo "'
1450+
'${WIBO} "${COMPILER_DIR}/binnt/wpp386.exe" $(echo "'
14511451
+ WATCOM_ARGS
14521452
+ "\" | sed 's:/:\\\\:g')"
14531453
)

0 commit comments

Comments
 (0)