From 0a6a6032bcb747a6d246d9b646d177ba1f004b82 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 16 Dec 2023 20:23:21 +0900 Subject: [PATCH] tools: Update check-cfg list --- .github/.cspell/project-dictionary.txt | 1 + tools/build.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/.cspell/project-dictionary.txt b/.github/.cspell/project-dictionary.txt index 70f33547..e24df63d 100644 --- a/.github/.cspell/project-dictionary.txt +++ b/.github/.cspell/project-dictionary.txt @@ -28,6 +28,7 @@ cmovl cmpd cmpld cmpxchg +cond cpsid cpsie CPSR diff --git a/tools/build.sh b/tools/build.sh index 970cb776..a4c6e5fd 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -237,7 +237,7 @@ if [[ "${rustc_version}" == *"nightly"* ]] || [[ "${rustc_version}" == *"dev"* ] # shellcheck disable=SC2207 if [[ "${rustc_minor_version}" -ge 76 ]] && [[ -n "${TESTS:-}" ]] && [[ -z "${TARGET_GROUP:-}" ]]; then build_scripts=(build.rs portable-atomic-util/build.rs) - check_cfg='-Z unstable-options --check-cfg=cfg(target_pointer_width,values("128")) --check-cfg=cfg(target_arch,values("xtensa"))' + check_cfg='-Z unstable-options --check-cfg=cfg(target_pointer_width,values("128")) --check-cfg=cfg(target_arch,values("xtensa")) --check-cfg=cfg(target_feature,values("lse2","lse128","rcpc3","quadword-atomics","fast-serialization","load-store-on-cond","distinct-ops","miscellaneous-extensions-3"))' known_cfgs+=($(grep -E 'cargo:rustc-cfg=' "${build_scripts[@]}" | sed -E 's/^.*cargo:rustc-cfg=//; s/(=\\)?".*$//' | LC_ALL=C sort -u)) # TODO: handle multi-line target_feature_if known_target_feature_values+=($(grep -E 'target_feature_if\("' "${build_scripts[@]}" | sed -E 's/^.*target_feature_if\(//; s/",.*$/"/' | LC_ALL=C sort -u))