From e93ac42146bad6d138aa956f4044e55012ae9d8c Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 30 Dec 2022 23:04:59 +0800 Subject: [PATCH] initial attempt to switch out the linker --- .cargo/config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index df2b29411..f912ee7fa 100644 --- a/.cargo/config +++ b/.cargo/config @@ -5,4 +5,8 @@ xtask = "run --package xtask --" # offline = true # do not access the network [build] -rustflags = ["--cfg", "crossbeam_no_atomic_64"] \ No newline at end of file +rustflags = ["--cfg", "crossbeam_no_atomic_64"] + +[target.riscv32imac-unknown-xous-elf] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=/opt/riscv64-unknown-elf/bin/riscv64-unknown-elf-ld", "--cfg", "crossbeam_no_atomic_64"] \ No newline at end of file