@@ -57,7 +57,6 @@ class Compiler:
57
57
is_gcc : ClassVar [bool ] = False
58
58
is_ido : ClassVar [bool ] = False
59
59
is_mwcc : ClassVar [bool ] = False
60
- needs_wine = False
61
60
language : Language = Language .C
62
61
63
62
@property
@@ -211,7 +210,7 @@ def preset_from_name(name: str) -> Optional[Preset]:
211
210
cc = 'cc -E -I "${COMPILER_DIR}"/include -iquote include -nostdinc -undef "$INPUT" | "${COMPILER_DIR}"/bin/agbcp -quiet $COMPILER_FLAGS -o - | arm-none-eabi-as -mcpu=arm7tdmi -o "$OUTPUT"' ,
212
211
)
213
212
# N3DS
214
- ARMCC_CC = '${WINE } "${COMPILER_DIR}"/bin/armcc.exe -c --cpu=MPCore --fpmode=fast --apcs=/interwork -I "${COMPILER_DIR}"/include $COMPILER_FLAGS -o "${OUTPUT}" "${INPUT}"'
213
+ ARMCC_CC = '${WIBO } "${COMPILER_DIR}"/bin/armcc.exe -c --cpu=MPCore --fpmode=fast --apcs=/interwork -I "${COMPILER_DIR}"/include $COMPILER_FLAGS -o "${OUTPUT}" "${INPUT}"'
215
214
216
215
ARMCC_40_771 = ArmccCompiler (
217
216
id = "armcc_40_771" ,
@@ -305,7 +304,7 @@ def preset_from_name(name: str) -> Optional[Preset]:
305
304
+ '(HOME="." dosemu -quiet -dumb -f ${COMPILER_DIR}/dosemurc -K . -E "ASPSX.EXE -quiet object.os -o object.oo") && '
306
305
+ '${COMPILER_DIR}/psyq-obj-parser object.oo -o "$OUTPUT"'
307
306
)
308
- PSYQ_CC = 'cpp -P "$INPUT" | unix2dos | ${WINE } ${COMPILER_DIR}/CC1PSX.EXE -quiet ${COMPILER_FLAGS} -o "$OUTPUT".s && ${WINE } ${COMPILER_DIR}/ASPSX.EXE -quiet "$OUTPUT".s -o "$OUTPUT".obj && ${COMPILER_DIR}/psyq-obj-parser "$OUTPUT".obj -o "$OUTPUT"'
307
+ PSYQ_CC = 'cpp -P "$INPUT" | unix2dos | ${WIBO } ${COMPILER_DIR}/CC1PSX.EXE -quiet ${COMPILER_FLAGS} -o "$OUTPUT".s && ${WIBO } ${COMPILER_DIR}/ASPSX.EXE -quiet "$OUTPUT".s -o "$OUTPUT".obj && ${COMPILER_DIR}/psyq-obj-parser "$OUTPUT".obj -o "$OUTPUT"'
309
308
310
309
PSYQ35 = GCCPS1Compiler (
311
310
id = "psyq3.5" ,
@@ -465,31 +464,31 @@ def preset_from_name(name: str) -> Optional[Preset]:
465
464
EE_GCC2952_273A = GCCCompiler (
466
465
id = "ee-gcc2.95.2-273a" ,
467
466
platform = PS2 ,
468
- cc = '${WINE } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
467
+ cc = '${WIBO } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
469
468
)
470
469
471
470
EE_GCC2952_274 = GCCCompiler (
472
471
id = "ee-gcc2.95.2-274" ,
473
472
platform = PS2 ,
474
- cc = '${WINE } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
473
+ cc = '${WIBO } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
475
474
)
476
475
477
476
EE_GCC2953_107 = GCCCompiler (
478
477
id = "ee-gcc2.95.3-107" ,
479
478
platform = PS2 ,
480
- cc = '${WINE } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
479
+ cc = '${WIBO } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
481
480
)
482
481
483
482
EE_GCC2953_114 = GCCCompiler (
484
483
id = "ee-gcc2.95.3-114" ,
485
484
platform = PS2 ,
486
- cc = '${WINE } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
485
+ cc = '${WIBO } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
487
486
)
488
487
489
488
EE_GCC2953_136 = GCCCompiler (
490
489
id = "ee-gcc2.95.3-136" ,
491
490
platform = PS2 ,
492
- cc = '${WINE } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
491
+ cc = '${WIBO } "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"' ,
493
492
)
494
493
495
494
EE_GCC296 = GCCCompiler (
@@ -507,31 +506,31 @@ def preset_from_name(name: str) -> Optional[Preset]:
507
506
MWCPS2_23_991202 = MWCCCompiler (
508
507
id = "mwcps2-2.3-991202" ,
509
508
platform = PS2 ,
510
- cc = '${WINE } "${COMPILER_DIR}/mwccmips.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
509
+ cc = '${WIBO } "${COMPILER_DIR}/mwccmips.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
511
510
)
512
511
513
512
MWCPS2_30B22_011126 = MWCCCompiler (
514
513
id = "mwcps2-3.0b22-011126" ,
515
514
platform = PS2 ,
516
- cc = '${WINE } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
515
+ cc = '${WIBO } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
517
516
)
518
517
519
518
MWCPS2_30B22_020123 = MWCCCompiler (
520
519
id = "mwcps2-3.0b22-020123" ,
521
520
platform = PS2 ,
522
- cc = '${WINE } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
521
+ cc = '${WIBO } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
523
522
)
524
523
525
524
MWCPS2_30B22_020716 = MWCCCompiler (
526
525
id = "mwcps2-3.0b22-020716" ,
527
526
platform = PS2 ,
528
- cc = '${WINE } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
527
+ cc = '${WIBO } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
529
528
)
530
529
531
530
MWCPS2_30B22_020926 = MWCCCompiler (
532
531
id = "mwcps2-3.0b22-020926" ,
533
532
platform = PS2 ,
534
- cc = '${WINE } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
533
+ cc = '${WIBO } "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"' ,
535
534
)
536
535
537
536
@@ -582,7 +581,7 @@ def preset_from_name(name: str) -> Optional[Preset]:
582
581
GCC272SN = GCCCompiler (
583
582
id = "gcc2.7.2sn" ,
584
583
platform = N64 ,
585
- cc = 'cpp -P "$INPUT" | ${WINE } "${COMPILER_DIR}"/cc1n64.exe -quiet -G0 -mcpu=vr4300 -mips3 -mhard-float -meb ${COMPILER_FLAGS} -o "$OUTPUT".s && ${WINE } "${COMPILER_DIR}"/asn64.exe -q -G0 "$OUTPUT".s -o "$OUTPUT".obj && "${COMPILER_DIR}"/psyq-obj-parser "$OUTPUT".obj -o "$OUTPUT" -b -n' ,
584
+ cc = 'cpp -P "$INPUT" | ${WIBO } "${COMPILER_DIR}"/cc1n64.exe -quiet -G0 -mcpu=vr4300 -mips3 -mhard-float -meb ${COMPILER_FLAGS} -o "$OUTPUT".s && ${WIBO } "${COMPILER_DIR}"/asn64.exe -q -G0 "$OUTPUT".s -o "$OUTPUT".obj && "${COMPILER_DIR}"/psyq-obj-parser "$OUTPUT".obj -o "$OUTPUT" -b -n' ,
586
585
)
587
586
588
587
GCC272SNEW = GCCCompiler (
@@ -595,8 +594,8 @@ def preset_from_name(name: str) -> Optional[Preset]:
595
594
id = "gcc2.8.1sn" ,
596
595
platform = N64 ,
597
596
cc = 'cpp -E -lang-c -undef -D__GNUC__=2 -Dmips -D__mips__ -D__mips -Dn64 -D__n64__ -D__n64 -D_PSYQ -D__EXTENSIONS__ -D_MIPSEB -D__CHAR_UNSIGNED__ "$INPUT" '
598
- '| ${WINE } "${COMPILER_DIR}"/cc1n64.exe ${COMPILER_FLAGS} -o "$OUTPUT".s '
599
- '&& ${WINE } "${COMPILER_DIR}"/asn64.exe -q -G0 "$OUTPUT".s -o "$OUTPUT".obj '
597
+ '| ${WIBO } "${COMPILER_DIR}"/cc1n64.exe ${COMPILER_FLAGS} -o "$OUTPUT".s '
598
+ '&& ${WIBO } "${COMPILER_DIR}"/asn64.exe -q -G0 "$OUTPUT".s -o "$OUTPUT".obj '
600
599
'&& "${COMPILER_DIR}"/psyq-obj-parser "$OUTPUT".obj -o "$OUTPUT" -b -n' ,
601
600
)
602
601
@@ -605,8 +604,8 @@ def preset_from_name(name: str) -> Optional[Preset]:
605
604
base_compiler = GCC281SN ,
606
605
platform = N64 ,
607
606
cc = 'cpp -E -lang-c++ -undef -D__GNUC__=2 -D__cplusplus -Dmips -D__mips__ -D__mips -Dn64 -D__n64__ -D__n64 -D_PSYQ -D__EXTENSIONS__ -D_MIPSEB -D__CHAR_UNSIGNED__ -D_LANGUAGE_C_PLUS_PLUS "$INPUT" '
608
- '| ${WINE } "${COMPILER_DIR}"/cc1pln64.exe ${COMPILER_FLAGS} -o "$OUTPUT".s '
609
- '&& ${WINE } "${COMPILER_DIR}"/asn64.exe -q -G0 "$OUTPUT".s -o "$OUTPUT".obj '
607
+ '| ${WIBO } "${COMPILER_DIR}"/cc1pln64.exe ${COMPILER_FLAGS} -o "$OUTPUT".s '
608
+ '&& ${WIBO } "${COMPILER_DIR}"/asn64.exe -q -G0 "$OUTPUT".s -o "$OUTPUT".obj '
610
609
'&& "${COMPILER_DIR}"/psyq-obj-parser "$OUTPUT".obj -o "$OUTPUT" -b -n' ,
611
610
)
612
611
@@ -737,7 +736,7 @@ def preset_from_name(name: str) -> Optional[Preset]:
737
736
# GC_WII
738
737
# Thanks to Gordon Davisson for the xargs trick:
739
738
# https://superuser.com/questions/1529226/get-bash-to-respect-quotes-when-word-splitting-subshell-output/1529316#1529316
740
- MWCCEPPC_CC = 'printf "%s" "${COMPILER_FLAGS}" | xargs -x -- ${WINE } "${COMPILER_DIR}/mwcceppc.exe" -pragma "msg_show_realref off" -c -proc gekko -nostdinc -stderr -o "${OUTPUT}" "${INPUT}"'
739
+ MWCCEPPC_CC = 'printf "%s" "${COMPILER_FLAGS}" | xargs -x -- ${WIBO } "${COMPILER_DIR}/mwcceppc.exe" -pragma "msg_show_realref off" -c -proc gekko -nostdinc -stderr -o "${OUTPUT}" "${INPUT}"'
741
740
742
741
MWCC_233_144 = MWCCCompiler (
743
742
id = "mwcc_233_144" ,
@@ -759,7 +758,7 @@ def preset_from_name(name: str) -> Optional[Preset]:
759
758
MWCC_233_163E = MWCCCompiler (
760
759
id = "mwcc_233_163e" ,
761
760
platform = GC_WII ,
762
- cc = '${WINE } "${COMPILER_DIR}/mwcceppc.125.exe" -c -proc gekko -nostdinc -stderr ${COMPILER_FLAGS} -o "${OUTPUT}.1" "${INPUT}" && ${WINE } "${COMPILER_DIR}/mwcceppc.exe" -c -proc gekko -nostdinc -stderr ${COMPILER_FLAGS} -o "${OUTPUT}.2" "${INPUT}" && python3 "${COMPILER_DIR}/frank.py" "${OUTPUT}.1" "${OUTPUT}.2" "${OUTPUT}"' ,
761
+ cc = '${WIBO } "${COMPILER_DIR}/mwcceppc.125.exe" -c -proc gekko -nostdinc -stderr ${COMPILER_FLAGS} -o "${OUTPUT}.1" "${INPUT}" && ${WIBO } "${COMPILER_DIR}/mwcceppc.exe" -c -proc gekko -nostdinc -stderr ${COMPILER_FLAGS} -o "${OUTPUT}.2" "${INPUT}" && python3 "${COMPILER_DIR}/frank.py" "${OUTPUT}.1" "${OUTPUT}.2" "${OUTPUT}"' ,
763
762
)
764
763
765
764
MWCC_233_163N = MWCCCompiler (
@@ -847,7 +846,7 @@ def preset_from_name(name: str) -> Optional[Preset]:
847
846
)
848
847
849
848
# NDS_ARM9
850
- MWCCARM_CC = '${WINE } "${COMPILER_DIR}/mwccarm.exe" -pragma "msg_show_realref off" -c -proc arm946e -nostdinc -stderr ${COMPILER_FLAGS} -o "${OUTPUT}" "${INPUT}"'
849
+ MWCCARM_CC = '${WIBO } "${COMPILER_DIR}/mwccarm.exe" -pragma "msg_show_realref off" -c -proc arm946e -nostdinc -stderr ${COMPILER_FLAGS} -o "${OUTPUT}" "${INPUT}"'
851
850
852
851
MWCC_20_72 = MWCCCompiler (
853
852
id = "mwcc_20_72" ,
@@ -987,7 +986,7 @@ def preset_from_name(name: str) -> Optional[Preset]:
987
986
cc = MWCCARM_CC ,
988
987
)
989
988
990
- CL_WIN = '${WINE } "${COMPILER_DIR}"/Bin/CL.EXE /c /nologo /IZ:"${COMPILER_DIR}"/Include/ ${COMPILER_FLAGS} /Fd"Z:/tmp/" /Bk"Z:/tmp/" /Fo"Z:${OUTPUT}" "Z:${INPUT}"'
989
+ CL_WIN = '${WIBO } "${COMPILER_DIR}"/Bin/CL.EXE /c /nologo /IZ:"${COMPILER_DIR}"/Include/ ${COMPILER_FLAGS} /Fd"Z:/tmp/" /Bk"Z:/tmp/" /Fo"Z:${OUTPUT}" "Z:${INPUT}"'
991
990
992
991
MSVC40 = MSVCCompiler (
993
992
id = "msvc4.0" ,
@@ -1051,12 +1050,12 @@ def preset_from_name(name: str) -> Optional[Preset]:
1051
1050
# Watcom doesn't like '/' in paths passed to it so we need to replace them.
1052
1051
WATCOM_ARGS = ' -zq -i="Z:${COMPILER_DIR}/h" -i="Z:${COMPILER_DIR}/h/nt" ${COMPILER_FLAGS} -fo"Z:${OUTPUT}" "Z:${INPUT}"'
1053
1052
WATCOM_CC = (
1054
- '${WINE } "${COMPILER_DIR}/binnt/wcc386.exe" $(echo "'
1053
+ '${WIBO } "${COMPILER_DIR}/binnt/wcc386.exe" $(echo "'
1055
1054
+ WATCOM_ARGS
1056
1055
+ "\" | sed 's:/:\\ \\ :g')"
1057
1056
)
1058
1057
WATCOM_CXX = (
1059
- '${WINE } "${COMPILER_DIR}/binnt/wpp386.exe" $(echo "'
1058
+ '${WIBO } "${COMPILER_DIR}/binnt/wpp386.exe" $(echo "'
1060
1059
+ WATCOM_ARGS
1061
1060
+ "\" | sed 's:/:\\ \\ :g')"
1062
1061
)
0 commit comments