diff options
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-x | tcwg-benchmark.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index 0b1e125e..a544a5f0 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%:*} @@ -92,7 +94,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") |