Skip to content

Commit 1b4dbb4

Browse files
committed
Another attempt at setting a linker
1 parent 8f7e515 commit 1b4dbb4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,15 @@ jobs:
7575
"apt-get update && apt-get install --assume-yes libssl-dev:arm64"
7676
]
7777
EOF
78-
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc
78+
79+
mkdir .cargo
80+
81+
cat <<- 'EOF' > .cargo/config.toml
82+
[target.aarch64-unknown-linux-gnu]
83+
linker = "aarch64-linux-gnu-gcc"
84+
EOF
85+
86+
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
7987
cross build --release --target ${{ matrix.rust_arch }} --features optimizations
8088
mv target/${{ matrix.rust_arch }}/release/dx target/dx.${{ matrix.docker_arch }}
8189

0 commit comments

Comments
 (0)