Skip to content

Commit 7a06686

Browse files
committed
manually install target toolchain
1 parent 767819b commit 7a06686

File tree

1 file changed

+2
-2
lines changed
  • packages/turbo-repository/scripts

1 file changed

+2
-2
lines changed

packages/turbo-repository/scripts/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ script_provided_flags="\
1313
for flag in $user_provided_flags; do
1414
if [[ $flag == --target=* ]]; then
1515
target=${flag#*=}
16-
rustup target add "$target"
16+
rustup toolchain install stable --target "$target"
1717

1818
# For we need to cross-compile some targets with Zig
1919
# Fortunately, napi comes with a `--zig` flag
@@ -23,7 +23,7 @@ for flag in $user_provided_flags; do
2323
fi
2424
done
2525

26-
node_modules/.bin/napi build $script_provided_flags $user_provided_flags
26+
node_modules/.bin/napi build "$script_provided_flags" "$user_provided_flags"
2727

2828
# Unfortunately, when napi generates a .d.ts file, it doesn't match our formatting rules (it doesn't have semicolons).
2929
# Since there's now way to configure this from napi itself, so we need to run prettier on it after generating it.

0 commit comments

Comments
 (0)