Cross-compilation assistance: Env vars not set when targeting x86_64_unknown_linux_musl
from Linux
#726
Labels
x86_64_unknown_linux_musl
from Linux
#726
Currently the cross-compile assistance does not set any env vars in this branch:
libcnb.rs/libcnb-package/src/cross_compile.rs
Lines 49 to 53 in 4ec39b6
Whilst some compiles will succeed with that implementation (since Rust will automatically use
musl-gcc
if it's found), it breaks when cross-compiling for a different architecture.All
musl-gcc
does is compile using musl rather than glibc, using the same architecture as the host. (As opposed to the wrappers likex86_64-unknown-linux-musl
which also target the different architecture.)In addition, since none of the
CC_*
type env vars are set, if the buildpack uses any Rust dependencies that contain C components (such as thering
crate used for TLS), then the build will fail like so:The text was updated successfully, but these errors were encountered: