From f45ec71d56cb4ba40c1e5e316b03809b5429689e Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Mon, 11 Nov 2024 10:18:47 +0100 Subject: [PATCH] fix rust triplets for cc-rs --- compile_rust.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compile_rust.sh b/compile_rust.sh index 8e88267ea7..8d987ab015 100755 --- a/compile_rust.sh +++ b/compile_rust.sh @@ -1,4 +1,11 @@ #!/bin/sh + +if [ -n "$host_os" ]; then + # cc-rs is checking for rust triplets since + # https://github.com/rust-lang/cc-rs/blob/5835783f0e3a02cc343ed02e272b54988ee8a423/src/target.rs#L53-L66 + host_os=$(echo "$host_os" | sed 's/alpine-linux-musl/unknown-linux/') +fi + cd components-rs RUSTFLAGS="${RUSTFLAGS:-} --cfg tokio_unstable"