Skip to content

Commit 7e8239d

Browse files
committed
Replace wine with wibo
1 parent 5aa9dd2 commit 7e8239d

File tree

4 files changed

+15
-28
lines changed

4 files changed

+15
-28
lines changed

backend/coreapp/compiler_wrapper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def lru_cache(maxsize: int = 128, typed: bool = False) -> Callable[[F], F]:
4949
else:
5050
PATH = os.environ["PATH"]
5151

52-
WINE = "wine"
5352
WIBO = "wibo"
5453

5554

@@ -203,7 +202,6 @@ def compile_code(
203202
shell=True,
204203
env={
205204
"PATH": PATH,
206-
"WINE": WINE,
207205
"WIBO": WIBO,
208206
"INPUT": sandbox.rewrite_path(code_path),
209207
"OUTPUT": sandbox.rewrite_path(object_path),

backend/coreapp/compilers.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def available_platforms() -> List[Platform]:
399399
'echo "compiler_path=${COMPILER_DIR//\\//\\\\}" >> SN.INI && '
400400
'echo "assembler_path=${COMPILER_DIR//\\//\\\\}" >> SN.INI && '
401401
'echo "tmpdir=/tmp" >> SN.INI && '
402-
'SN_PATH=. ${WINE} ${COMPILER_DIR}/CCPSX.EXE -v -c ${COMPILER_FLAGS} "${INPUT}" -o "${OUTPUT}bj" && '
402+
'SN_PATH=. ${WIBO} ${COMPILER_DIR}/CCPSX.EXE -v -c ${COMPILER_FLAGS} "${INPUT}" -o "${OUTPUT}bj" && '
403403
'${COMPILER_DIR}/psyq-obj-parser "${OUTPUT}"bj -o "${OUTPUT}"'
404404
)
405405

@@ -512,7 +512,7 @@ def available_platforms() -> List[Platform]:
512512
DREAMCAST_CC = (
513513
'cat "$INPUT" | unix2dos > dos_src.c && '
514514
"cp -r ${COMPILER_DIR}/bin/* . && "
515-
"(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) && "
515+
"(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) && "
516516
"${WIBO} ${COMPILER_DIR}/bin/elfcnv.exe dos_src.obj ${OUTPUT}"
517517
)
518518

@@ -526,7 +526,7 @@ def available_platforms() -> List[Platform]:
526526

527527
IOP_GCC2952_102 = GCCPS2Compiler(
528528
id="iop-gcc2.95.2-102",
529-
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"',
529+
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"',
530530
)
531531

532532
EE_GCC29_990721 = GCCPS2Compiler(
@@ -557,27 +557,27 @@ def available_platforms() -> List[Platform]:
557557

558558
EE_GCC2952_273A = GCCPS2Compiler(
559559
id="ee-gcc2.95.2-273a",
560-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
560+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
561561
)
562562

563563
EE_GCC2952_274 = GCCPS2Compiler(
564564
id="ee-gcc2.95.2-274",
565-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
565+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.2/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
566566
)
567567

568568
EE_GCC2953_107 = GCCPS2Compiler(
569569
id="ee-gcc2.95.3-107",
570-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
570+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
571571
)
572572

573573
EE_GCC2953_114 = GCCPS2Compiler(
574574
id="ee-gcc2.95.3-114",
575-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
575+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
576576
)
577577

578578
EE_GCC2953_136 = GCCPS2Compiler(
579579
id="ee-gcc2.95.3-136",
580-
cc='${WINE} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
580+
cc='${WIBO} "${COMPILER_DIR}/bin/ee-gcc.exe" -c -B "${COMPILER_DIR}"/lib/gcc-lib/ee/2.95.3/ $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
581581
)
582582

583583
EE_GCC296 = GCCPS2Compiler(
@@ -587,7 +587,7 @@ def available_platforms() -> List[Platform]:
587587

588588
EE_GCC32_030210_BETA2 = GCCPS2Compiler(
589589
id="ee-gcc3.2-030210-beta2",
590-
cc='WINEPATH="${COMPILER_DIR}"/dll/ ${WINE} "${COMPILER_DIR}"/bin/ee-gcc.exe -c -B "${COMPILER_DIR}"/bin/ee- $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
590+
cc='WINEPATH="${COMPILER_DIR}"/dll/ ${WIBO} "${COMPILER_DIR}"/bin/ee-gcc.exe -c -B "${COMPILER_DIR}"/bin/ee- $COMPILER_FLAGS "$INPUT" -o "$OUTPUT"',
591591
)
592592

593593
EE_GCC32_030926 = GCCPS2Compiler(
@@ -602,7 +602,7 @@ def available_platforms() -> List[Platform]:
602602

603603
MWCPS2_23_991202 = MWCCPS2Compiler(
604604
id="mwcps2-2.3-991202",
605-
cc='${WINE} "${COMPILER_DIR}/mwccmips.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"',
605+
cc='${WIBO} "${COMPILER_DIR}/mwccmips.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"',
606606
)
607607

608608
MWCPS2_CC = '${WIBO} "${COMPILER_DIR}/mwccps2.exe" -c $COMPILER_FLAGS -nostdinc -stderr "$INPUT" -o "$OUTPUT"'
@@ -727,7 +727,7 @@ def available_platforms() -> List[Platform]:
727727
PSPSNC_1_2_7503_0 = GCCCompiler(
728728
id="pspsnc_1.2.7503.0",
729729
platform=PSP,
730-
cc='${WINE} ${COMPILER_DIR}/pspsnc.exe -c -td=. ${COMPILER_FLAGS} -o "${OUTPUT}" "${INPUT}"',
730+
cc='${WIBO} ${COMPILER_DIR}/pspsnc.exe -c -td=. ${COMPILER_FLAGS} -o "${OUTPUT}" "${INPUT}"',
731731
)
732732

733733
MWCCPSP_CC = (
@@ -1175,7 +1175,7 @@ def available_platforms() -> List[Platform]:
11751175
cc=MWCCEPPC_CC,
11761176
)
11771177

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

11801180
PRODG_35 = GCCCompiler(
11811181
id="prodg_35",
@@ -1325,7 +1325,7 @@ def available_platforms() -> List[Platform]:
13251325
cc=MWCCARM_CC,
13261326
)
13271327

1328-
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}"'
1328+
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}"'
13291329

13301330
MSVC40 = MSVCCompiler(
13311331
id="msvc4.0",
@@ -1407,12 +1407,12 @@ def available_platforms() -> List[Platform]:
14071407
# Watcom doesn't like '/' in paths passed to it so we need to replace them.
14081408
WATCOM_ARGS = ' -zq -i="Z:${COMPILER_DIR}/h" -i="Z:${COMPILER_DIR}/h/nt" ${COMPILER_FLAGS} -fo"Z:${OUTPUT}" "Z:${INPUT}"'
14091409
WATCOM_CC = (
1410-
'${WINE} "${COMPILER_DIR}/binnt/wcc386.exe" $(echo "'
1410+
'${WIBO} "${COMPILER_DIR}/binnt/wcc386.exe" $(echo "'
14111411
+ WATCOM_ARGS
14121412
+ "\" | sed 's:/:\\\\:g')"
14131413
)
14141414
WATCOM_CXX = (
1415-
'${WINE} "${COMPILER_DIR}/binnt/wpp386.exe" $(echo "'
1415+
'${WIBO} "${COMPILER_DIR}/binnt/wpp386.exe" $(echo "'
14161416
+ WATCOM_ARGS
14171417
+ "\" | sed 's:/:\\\\:g')"
14181418
)

docs/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ yarn dev
8585

8686
### Optional steps
8787
- [Configure vscode for development](VSCODE.md)
88-
- [Configure wine for Windows compiler on Linux](WINE.md)
8988
- [Set up GitHub authentication](GITHUB.md)
9089
- [Install nsjail to run the compiler sandbox](SANDBOX.md)
9190
- [Configure an nginx reverse proxy](NGINX.md)

docs/WINE.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)