We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4491dd0 commit f226ed3Copy full SHA for f226ed3
tools/target_spec.sh
@@ -17,8 +17,7 @@ utils_file="src/gen/utils.rs"
17
mkdir -p "$(dirname "${utils_file}")"
18
19
known_64_bit_arch=()
20
-for target in $(rustc --print target-list); do
21
- target_spec=$(rustc --print target-spec-json -Z unstable-options --target "${target}")
+for target_spec in $(rustc -Z unstable-options --print all-target-specs-json | jq -c '. | to_entries | .[].value'); do
22
arch="$(jq <<<"${target_spec}" -r '.arch')"
23
if [[ "$(jq <<<"${target_spec}" -r '."target-pointer-width"')" == "64" ]]; then
24
known_64_bit_arch+=("${arch}")
0 commit comments