File tree 3 files changed +24
-1
lines changed
ci/docker/loongarch64-unknown-linux-gnu
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 92
92
- thumbv7m-none-eabi
93
93
- thumbv7em-none-eabi
94
94
- thumbv7em-none-eabihf
95
+ - loongarch64-unknown-linux-gnu
95
96
96
97
# macOS targets
97
98
- x86_64-apple-darwin
@@ -171,6 +172,8 @@ jobs:
171
172
os : ubuntu-latest
172
173
- target : riscv64gc-unknown-linux-gnu
173
174
os : ubuntu-latest
175
+ - target : loongarch64-unknown-linux-gnu
176
+ os : ubuntu-latest
174
177
175
178
steps :
176
179
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:24.04
2
+ RUN \
3
+ apt-get update && \
4
+ apt-get install -y --no-install-recommends gcc libc6-dev ca-certificates wget xz-utils && \
5
+ wget "https://github.com/loongson/build-tools/releases/download/2024.08.08/x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0.tar.xz" && \
6
+ tar -xvf x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0.tar.xz -C / && \
7
+ rm x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0.tar.xz && \
8
+ wget "https://github.com/loongson/build-tools/releases/download/2024.08.08/x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0-glibc_2.40.tar.xz" && \
9
+ tar -xvf x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0-glibc_2.40.tar.xz -C / && \
10
+ rm x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0-glibc_2.40.tar.xz && \
11
+ wget "https://github.com/loongson/build-tools/releases/download/2023.08.08/qemu-loongarch64" && \
12
+ install -m 755 qemu-loongarch64 /cross-tools/bin/qemu-loongarch64 && \
13
+ rm qemu-loongarch64
14
+ ENV \
15
+ CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER="/cross-tools/bin/loongarch64-unknown-linux-gnu-gcc" \
16
+ CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER="/cross-tools/bin/qemu-loongarch64 -L /cross-tools/target -E LD_LIBRARY_PATH=/cross-tools/loongarch64-unknown-linux-gnu/lib"
Original file line number Diff line number Diff line change 66
66
) ]
67
67
#![ cfg_attr(
68
68
test,
69
- feature( stdarch_arm_feature_detection, stdarch_powerpc_feature_detection)
69
+ feature(
70
+ stdarch_arm_feature_detection,
71
+ stdarch_powerpc_feature_detection,
72
+ stdarch_loongarch_feature_detection
73
+ )
70
74
) ]
71
75
72
76
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments