diff --git a/src/Runner.jl b/src/Runner.jl index f42b1fee..b5a1c784 100644 --- a/src/Runner.jl +++ b/src/Runner.jl @@ -1120,6 +1120,10 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString; "CARGO_BUILD_TARGET" => map_rust_target(platform), "CARGO_HOME" => "/opt/$(host_target)", "RUSTUP_HOME" => "/opt/$(host_target)", + # `TARGET` and `HOST` are needed in some build systems: + # . + "TARGET" => map_rust_target(platform), + "HOST" => map_rust_target(host_platform), )) if rust_version !== nothing merge!(mapping, Dict( @@ -1206,6 +1210,10 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString; end end + if :rust in compilers + mapping["HOST_CC"] = mapping["HOSTCC"] + end + # There is no easy way to automatically determine the version of glibc for # all platforms, but some build systems want to know it. Let's emulate with # the `GNU_LIBC_VERSION` environment variable what `getconf