summaryrefslogtreecommitdiff
path: root/tcwg-benchmark.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-xtcwg-benchmark.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index fd9000bc..fbb49111 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -46,7 +46,9 @@ case "$toolchain_url" in
"ssh://"*)
ccprefix="${toolchain_url##ssh://}"
- # Extract host:port: specification from ccprefix.
+ # Extract host:port: specification from ccprefix, we don't
+ # need to care about :parallelize here, just pass it to run.sh
+ # if present.
case ${ccprefix} in
*:*:*)
build=${ccprefix%:*}
@@ -85,7 +87,8 @@ case "$toolchain_url" in
echo "ERROR: Unsupported sysroot $sysroot for toolchain_url $toolchain_url"
exit 1
fi
- toolchaindir="$(dirname $(echo $ccprefix | cut -s -d: -f 3))"
+ # Last component of ccprefix is the path, keep it
+ toolchaindir="$(dirname ${ccprefix##*:})"
;;
"http://"*".tar.xz"|"https://"*".tar.xz")
toolchaindir=$(untar_url "$toolchain_url" "$WORKSPACE" "--strip-components 1")