summaryrefslogtreecommitdiff
path: root/compile.sh
diff options
context:
space:
mode:
authorDario Bartussek <[email protected]>2021-04-19 13:50:42 +0200
committerDario Bartussek <[email protected]>2021-04-19 13:50:42 +0200
commit1f8f4e05410df148b7f3c3fd35f85c9b37d0401f (patch)
tree02f04335c9c2a9497b9c4a7113e0d1338194d674 /compile.sh
parentMerge branch '2_3ds_exe' of https://github.com/dbartussek/rust_3ds into 2_3ds... (diff)
downloadrust_3ds-2.5_libctru.tar.xz
rust_3ds-2.5_libctru.zip
Simple hello world program using libctru2.5_libctru
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/compile.sh b/compile.sh
index ac7ae71..c47a7b4 100755
--- a/compile.sh
+++ b/compile.sh
@@ -1,5 +1,7 @@
cargo fmt
-RUSTFLAGS="-C link-args=-T3dsx.ld -C link-args=-Map=rust_3ds.map" cargo xbuild --target 3ds.json
+cargo xbuild --target 3ds.json
-llvm-objdump -d -C target/3ds/debug/rust_3ds > rust_3ds.s
+arm-none-eabi-gcc -specs=3dsx.specs -g -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -Wl,-Map,rust_3ds.map -Ltarget/3ds/debug -LC:/devkitpro/libctru/lib -lrust_3ds -lctru -lm -o rust_3ds.elf
+
+llvm-objdump -d -C rust_3ds.elf > rust_3ds.s