Skip to content

Commit 66ac136

Browse files
committed
rustc wrapper respects CARGO_BUILD_TARGET
1 parent 55272a7 commit 66ac136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Runner.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,8 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
743743
function rustc(io::IO, p::AbstractPlatform)
744744
extra_cmds = """
745745
if [[ " \${ARGS[@]} " == *'--target'* ]]; then
746-
if ! [[ " \${ARGS[@]} " =~ --target(=| )$(map_rust_target(p)) ]]; then
747-
echo "Attempting to invoke targeted 'rustc' wrapper with a different target! (Expected $(map_rust_target(p)))" >&2
746+
if ! [[ " \${ARGS[@]} " =~ --target(=| )\${CARGO_BUILD_TARGET} ]]; then
747+
echo "Attempting to invoke targeted 'rustc' wrapper with a different target! (Expected \${CARGO_BUILD_TARGET}, which is `CARGO_BUILD_TARGET`)" >&2
748748
echo "args: \${ARGS[@]}" >&2
749749
exit 1
750750
fi

0 commit comments

Comments
 (0)