Skip to content

Commit abfb732

Browse files
committed
set in --target too
1 parent 66ac136 commit abfb732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runner.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
749749
exit 1
750750
fi
751751
else
752-
PRE_FLAGS+=( '--target=$(map_rust_target(p))' )
752+
PRE_FLAGS+=( '--target=\${CARGO_BUILD_TARGET}' )
753753
fi
754754
"""
755755
wrapper(io, "/opt/$(host_target)/bin/rustc"; flags=rust_flags!(p), allow_ccache=false, extra_cmds=extra_cmds)

0 commit comments

Comments
 (0)