Skip to content

Commit

Permalink
fix rust triplets for cc-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Nov 11, 2024
1 parent bbc62b1 commit b77cc0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compile_rust.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit b77cc0e

Please sign in to comment.