You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test-cargo.bats
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,8 @@ testHelloCargoRustup() {
47
47
@test "install-rustup" {
48
48
add clang lld curl ca-certificates
49
49
assert_success
50
-
run sh -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=1.69.0 --no-modify-path --profile=minimal"
50
+
# https://releases.rs/docs/1.81.0/ adds support for loongarch64 on musl: https://doc.rust-lang.org/rustc/platform-support/loongarch-linux.html#building-rust-programs
51
+
run sh -c "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=1.81.0 --no-modify-path --profile=minimal"
51
52
assert_success
52
53
export"PATH=/root/.cargo/bin:$PATH"
53
54
run rustup --version 2>/dev/null
@@ -75,6 +76,14 @@ testHelloCargoRustup() {
75
76
testHelloCargoRustup
76
77
}
77
78
79
+
@test "loong64-hellocargo-rustup" {
80
+
if! supportLoong64Go;then
81
+
skip "LOONGARCH64 not supported"
82
+
fi
83
+
export TARGETARCH=loong64
84
+
testHelloCargoRustup
85
+
}
86
+
78
87
@test "ppc64le-hellocargo-rustup" {
79
88
if [ -f /etc/alpine-release ];then
80
89
skip "rust stdlib not yet available for powerpc64le-unknown-linux-musl"
@@ -129,6 +138,14 @@ testHelloCargoRustup() {
129
138
testHelloCargo
130
139
}
131
140
141
+
@test "loong64-hellocargo-rustpkg" {
142
+
if! supportLoong64Go;then
143
+
skip "LOONGARCH64 not supported"# rust stdlib package not available
Copy file name to clipboardExpand all lines: src/test-clang.bats
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -259,6 +259,28 @@ testBuildHello() {
259
259
testHelloCLLD
260
260
}
261
261
262
+
@test "loong64-c-ld" {
263
+
if! supportLoongArch;then
264
+
skip "LOONGARCH64 not supported"
265
+
fi
266
+
if [ -f /etc/alpine-release ];then
267
+
# FIXME: loong64-c-lld issue on alpine < 3.21
268
+
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0x0): unknown relocation (102) against symbol
269
+
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0x3c): unknown relocation (102) against symbol
270
+
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0x64): unknown relocation (102) against symbol
271
+
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0xb4): unknown relocation (102) against symbol
272
+
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0xdc): unknown relocation (102) against symbol
273
+
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0x154): unknown relocation (102) against symbol
274
+
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0x198): unknown relocation (102) against symbol
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0x0): unknown relocation (102) against symbol
333
+
# error: unknown target triple 'loongarch64-alpine-linux-musl', please use -triple or -arch
# ld.lld: error: /loongarch64-alpine-linux-musl/usr/lib/gcc/loongarch64-alpine-linux-musl/14.2.0/crtbeginS.o:(.text+0x0): unknown relocation (102) against symbol
479
+
# error: unknown target triple 'loongarch64-alpine-linux-musl', please use -triple or -arch
0 commit comments