diff options
author | Rob Landley <rob@landley.net> | 2019-10-03 12:27:09 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-03 12:27:09 -0500 |
commit | bd277208335f585151641a9b5252f042732aa53b (patch) | |
tree | 9153fa0fc27247a8314b3b2f181e2dd411d19faf /scripts | |
parent | bbdb80ac41d6529b7c4e6d65dfb91b6a79c0e581 (diff) | |
download | toybox-bd277208335f585151641a9b5252f042732aa53b.tar.gz |
Let "llvm-cross" be an acceptable cross compiler directory name.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/cross.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/cross.sh b/scripts/cross.sh index 34fef0f7..f6bbb4b3 100755 --- a/scripts/cross.sh +++ b/scripts/cross.sh @@ -43,10 +43,11 @@ fi # Call command with CROSS_COMPILE= as its first argument +Y=$(echo "$CCC/$X"-*cross) +Z=$(basename "$Y") Y=$(readlink -f "$CCC"/$X-*cross) -X=$(basename "$Y") -export TARGET="${X/-*/}" -X="$Y/bin/${X/-cross/-}" +export TARGET="${Z/-*/}" +X="$Y/bin/${Z/-cross/-}" [ ! -e "${X}cc" ] && echo "${X}cc not found" && exit 1 CROSS_COMPILE="$X" "$@" |