We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9616a73 commit f1762dbCopy full SHA for f1762db
ci/run-docker.sh
@@ -11,6 +11,11 @@ if [ $# -lt 1 ]; then
11
fi
12
13
run() {
14
+ # Set the linker that is used for the host (e.g. when compiling a build.rs)
15
+ # This overrides any configuration in e.g. `.cargo/config.toml`, which will
16
+ # probably not work within the docker container.
17
+ HOST_LINKER="CARGO_TARGET_$(rustc --print host-tuple | tr a-z A-Z | tr '-' '_')_LINKER"
18
+
19
# Prevent `Read-only file system (os error 30)`.
20
cargo generate-lockfile
21
@@ -25,6 +30,7 @@ run() {
25
30
--env CARGO_HOME=/cargo \
26
31
--env CARGO_TARGET_DIR=/checkout/target \
27
32
--env TARGET="${1}" \
33
+ --env "${HOST_LINKER}"="cc" \
28
34
--env STDARCH_TEST_EVERYTHING \
29
35
--env STDARCH_DISABLE_ASSERT_INSTR \
36
--env NOSTD \
0 commit comments