Skip to content

Commit 89d5320

Browse files
committed
gpt feedback
1 parent 1eb55e4 commit 89d5320

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/coreapp/compilers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -930,14 +930,14 @@ def available_platforms() -> List[Platform]:
930930
'&& python3 "${COMPILER_DIR}"/modern-asn64.py mips-linux-gnu-as "$OUTPUT".s -G0 -EB -mtune=vr4300 -march=vr4300 -mabi=32 -O1 --no-construct-floats -o "$OUTPUT"',
931931
)
932932

933-
# Python alternative to the printf/xarg approach
934-
PYTHON_SCHLEX = """mapfile -t FLAGS < <(python3 -c "import shlex,sys;print(*shlex.split(sys.argv[1]),sep='\\n')" "${COMPILER_FLAGS}") && """
933+
# Python alternative to the printf/xargs approach for quoted flags
934+
PYTHON_SHLEX = """mapfile -t FLAGS < <(python3 -c "import shlex,sys;print(*shlex.split(sys.argv[1]),sep='\\n')" "${COMPILER_FLAGS}") && """
935935

936936
EGCS1124 = GCCCompiler(
937937
id="egcs_1.1.2-4",
938938
platform=N64,
939939
cc=(
940-
PYTHON_SCHLEX
940+
PYTHON_SHLEX
941941
+ 'COMPILER_PATH="${COMPILER_DIR}" "${COMPILER_DIR}/mips-linux-gcc" "${FLAGS[@]}" -c -G 0 -fno-PIC -mgp32 -mfp32 -mcpu=4300 -nostdinc "${INPUT}" -o "${OUTPUT}"'
942942
),
943943
)
@@ -946,7 +946,7 @@ def available_platforms() -> List[Platform]:
946946
id="egcs_1.1.2-4c",
947947
platform=N64,
948948
cc=(
949-
PYTHON_SCHLEX
949+
PYTHON_SHLEX
950950
+ 'COMPILER_PATH="${COMPILER_DIR}" "${COMPILER_DIR}/gcc" "${FLAGS[@]}" -c -G 0 -fno-PIC -mgp32 -mfp32 -mcpu=4300 -nostdinc "${INPUT}" -o "${OUTPUT}"'
951951
),
952952
)

0 commit comments

Comments
 (0)