File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
ansible/roles/dev-desktop/files/scripts Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 5
5
set -euo pipefail
6
6
IFS=$' \n\t '
7
7
8
+ # Discover target triple (e.g. "aarch64-unknown-linux-gnu")
9
+ target=" $( rustc -vV | awk ' /host/ { print $2 }' ) "
10
+
8
11
for D in rust* ; do
9
12
if [ -d " ${D} " ]; then
10
13
pushd " ${D} "
11
14
12
15
./x.py build
13
16
14
- if [[ -d " $D /build/aarch64-unknown-linux-gnu /stage1" ]]; then
15
- rustup toolchain link " $D " _stage1 " $D /build/aarch64-unknown-linux-gnu /stage1"
17
+ if [[ -d " $D /build/$target /stage1" ]]; then
18
+ rustup toolchain link " $D " _stage1 " $D /build/$target /stage1"
16
19
fi
17
20
18
- if [[ -d " $D /build/aarch64-unknown-linux-gnu /stage2" ]]; then
19
- rustup toolchain link " $D " _stage2 " $D /build/aarch64-unknown-linux-gnu /stage2"
21
+ if [[ -d " $D /build/$target /stage2" ]]; then
22
+ rustup toolchain link " $D " _stage2 " $D /build/$target /stage2"
20
23
fi
21
24
22
25
popd
You can’t perform that action at this time.
0 commit comments