diff --git a/miri b/miri index 237a53efb1a..37e87ec7986 100755 --- a/miri +++ b/miri @@ -94,12 +94,12 @@ COMMAND="$1" # . case "$COMMAND" in *-debug) - CARGO_INSTALL_FLAGS="--debug $CARGO_EXTRA_FLAGS" - CARGO_BUILD_FLAGS="$CARGO_EXTRA_FLAGS" + CARGO_INSTALL_FLAGS="--target $TARGET --debug $CARGO_EXTRA_FLAGS" + CARGO_BUILD_FLAGS="--target $TARGET $CARGO_EXTRA_FLAGS" ;; *) - CARGO_INSTALL_FLAGS="$CARGO_EXTRA_FLAGS" - CARGO_BUILD_FLAGS="--release $CARGO_EXTRA_FLAGS" + CARGO_INSTALL_FLAGS="--target $TARGET $CARGO_EXTRA_FLAGS" + CARGO_BUILD_FLAGS="--target $TARGET --release $CARGO_EXTRA_FLAGS" ;; esac