mirror of
https://github.com/zeldaret/oot-gc.git
synced 2026-10-01 15:41:21 -04:00
16 lines
533 B
Bash
Executable File
16 lines
533 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CC="$1"
|
|
shift
|
|
AS="$1"
|
|
shift
|
|
|
|
# When running windows exes through wsl1 you can't give them linux paths
|
|
mkdir -p tools/asm_processor/tmp
|
|
temp="$(mktemp -d tools/asm_processor/tmp/XXXXXX)"
|
|
|
|
tools/asm_processor/asm_processor.py "$2" --assembler "$AS" > "$temp.c" &&
|
|
$CC "$temp.c" -c -o "$temp.o" &&
|
|
tools/asm_processor/asm_processor.py "$2" --post-process "$temp.o" --assembler "$AS" --asm-prelude include/macros.inc
|
|
$DEVKITPPC/bin/powerpc-eabi-objcopy --remove-section .mwcats.text --remove-section .comment "$temp.o" "$1"
|