完成龙芯的支持
This commit is contained in:
parent
e5256742ea
commit
3d91cd1ee3
11
build_loongson.sh
Normal file
11
build_loongson.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
export LC_ALL=POSIX
|
||||||
|
export CROSS_TARGET="loongarch64-unknown-linux-gnu"
|
||||||
|
export MABI="lp64d"
|
||||||
|
export BUILD64="-mabi=lp64d"
|
||||||
|
|
||||||
|
export PATH=$PATH:$HOME/package/cross-tools/bin
|
||||||
|
export CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-unknown-linux-gnu-gcc
|
||||||
|
export CC_loongarch64_unknown_linux_gnu=loongarch64-unknown-linux-gnu-gcc
|
||||||
|
export CXX_loongarch64_unknown_linux_gnu=loongarch64-unknown-linux-gnu-g++
|
||||||
|
|
||||||
|
cargo build --release --target "${CROSS_TARGET}"
|
Loading…
x
Reference in New Issue
Block a user