From 938eeb83a7b428bbd18624db9aa4669d158985b2 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Tue, 18 Dec 2018 23:12:41 +0000 Subject: tcwg-benchmark.sh: Add sanity check for toolchain_type Make sure we could determine it. Change-Id: I5ac789d0ec8eb78ea016e83751ed132d8900cc92 --- tcwg-benchmark.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tcwg-benchmark.sh') diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index e72fcc9b..652234db 100755 --- a/tcwg-benchmark.sh +++ b/tcwg-benchmark.sh @@ -145,6 +145,15 @@ case "$toolchain_url" in ;; esac +# Sanity check that toolchain_type is supported +case "$toolchain_type" in + gnu|llvm) ;; + *) + echo "ERROR: Could not determine toolchain type: $toolchain_type" + exit 1 + ;; +esac + case "$sysroot" in "tarball") sysroot="$build_container_host:$build_container_port:$(find "$toolchaindir" -name "libc")" -- cgit v1.2.3