From b77cc0ebf29b54e4464a3c0416331104505ff1a4 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..71b1b10388 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="${host_os/alpine-linux-musl/unknown-linux}" +fi + cd components-rs RUSTFLAGS="${RUSTFLAGS:-} --cfg tokio_unstable"