Skip to content

Commit 7fd1f60

Browse files
committed
tools: Update build.sh
1 parent e46e494 commit 7fd1f60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ if [[ "${rustc_version}" == *"nightly"* ]] || [[ "${rustc_version}" == *"dev"* ]
194194
# The latest syntax of -Z check-cfg requires 1.75.0-nightly.
195195
# We only check this on the recent nightly to avoid old clippy bugs.
196196
# shellcheck disable=SC2207
197-
if [[ "${rustc_minor_version}" -ge 76 ]]; then
197+
if [[ "${rustc_minor_version}" -ge 78 ]]; then
198198
build_scripts=(build.rs)
199-
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","v8m","partword-atomics","quadword-atomics","fast-serialization"))'
199+
check_cfg='-Z unstable-options --check-cfg=cfg(target_pointer_width,values("128")) --check-cfg=cfg(target_arch,values("xtensa","arm64ec")) --check-cfg=cfg(target_feature,values("lse2","lse128","rcpc3","v8m","partword-atomics","quadword-atomics","fast-serialization"))'
200200
known_cfgs+=($(grep -E 'cargo:rustc-cfg=' "${build_scripts[@]}" | sed -E 's/^.*cargo:rustc-cfg=//; s/(=\\)?".*$//' | LC_ALL=C sort -u))
201201
# TODO: handle multi-line target_feature_if
202202
known_target_feature_values+=($(grep -E 'target_feature_if\("' "${build_scripts[@]}" | sed -E 's/^.*target_feature_if\(//; s/",.*$/"/' | LC_ALL=C sort -u))

0 commit comments

Comments
 (0)