Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 20, 2022
1 parent 843241d commit 83b980c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ build() {
x rustup ${pre_args[@]+"${pre_args[@]}"} target add "${target}" &>/dev/null
elif [[ -n "${nightly}" ]]; then
case "${target}" in
*-none* | avr-* | *-esp-espidf) args+=(-Z build-std="core,alloc") ;;
*-none* | *-cuda* | avr-* | *-esp-espidf) args+=(-Z build-std="core,alloc") ;;
*) args+=(-Z build-std) ;;
esac
else
Expand Down Expand Up @@ -225,7 +225,7 @@ build() {
*) args+=(--exclude-features "outline-atomics") ;;
esac
case "${target}" in
*-none* | avr-* | *-esp-espidf)
*-none* | *-cuda* | avr-* | *-esp-espidf)
args+=(--exclude-features "std")
if ! grep <<<"${cfgs}" -q "target_has_atomic=" && [[ -n "${has_asm}" ]]; then
case "${target}" in
Expand Down

0 comments on commit 83b980c

Please sign in to comment.