You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, currently we're only setting the CC_* variant, not the CXX_* and AR_* env vars.
Whilst this works for all of the Rust crates we happen to use so far, for completeness we should probably set them all, in case someone uses a crate that relies on a tool that needs them to be set.
edmorley
changed the title
Cross-compilation assistence: Set the CXX_* and AR_* environment variables too
Cross-compilation assistance: Set the CXX_* and AR_* environment variables too
Nov 9, 2023
The cross compile toolchain docs at https://github.com/messense/homebrew-macos-cross-toolchains suggest setting all three of these env vars (adjusted appropriately for the name of the target):
However, currently we're only setting the
CC_*
variant, not theCXX_*
andAR_*
env vars.Whilst this works for all of the Rust crates we happen to use so far, for completeness we should probably set them all, in case someone uses a crate that relies on a tool that needs them to be set.
See:
https://github.com/heroku/libcnb.rs/blob/main/libcnb-package/src/cross_compile.rs
The text was updated successfully, but these errors were encountered: