This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SPDX-License-Identifier: Apache-2.0 OR MIT | |
set -euo pipefail | |
IFS=$'\n\t' | |
for target in $(rustc --print target-list); do | |
cfgs=$(rustc --print cfg --target "${target}") | |
if ! grep <<<"${cfgs}" -q "target_has_atomic=\"64\""; then | |
# target doesn't has `Atomic{i,U}64` | |
continue | |
fi | |
if grep <<<"${cfgs}" -q "target_has_atomic_equal_alignment=\"64\""; then | |
# `Atomic{i,U}64` and `{i,u}64` has the same alignment | |
continue | |
fi | |
if rustup target list | grep -Eq "^${target}( |$)"; then | |
echo "${target}" | |
else | |
echo "${target} (tier 3)" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment