From a30490390fd4f748eef0baea9307c31180bea144 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 23 Sep 2022 13:58:59 +0900 Subject: [PATCH] Adjust exclude in build.sh --- tools/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/build.sh b/tools/build.sh index 7cf5405f..c02239fd 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -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