Skip to content

Commit

Permalink
Adjust exclude in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 23, 2022
1 parent cc7ce49 commit a304903
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ build() {
*)
RUSTFLAGS="${target_rustflags} --cfg portable_atomic_unsafe_assume_single_core" \
x cargo "${args[@]}" --target-dir target/assume-single-core "$@"
# portable-atomic-util uses atomic CAS, so doesn't work on
# this target without portable_atomic_unsafe_assume_single_core cfg.
args+=(--exclude portable-atomic-util)
;;
esac
fi
Expand Down

0 comments on commit a304903

Please sign in to comment.