From 9e60a69e6227e3af272306c2f578c8cd71448de3 Mon Sep 17 00:00:00 2001 From: Patrick Goldinger Date: Thu, 7 Dec 2023 01:55:20 +0100 Subject: [PATCH] Restrict LLVM search area to /usr/lib --- setup-toolchain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-toolchain.sh b/setup-toolchain.sh index ceb6e1a..fa52499 100755 --- a/setup-toolchain.sh +++ b/setup-toolchain.sh @@ -173,7 +173,7 @@ printf "\033[1mSearching for LLVM installations on this system\033[0m\n" sel_llvm_tc="" sel_llvm_tc_v="0.0.0" candidates=$(mktemp) -find /usr -type f -name 'clang' > "$candidates" 2>/dev/null +find /usr/lib -type f -name 'clang' > "$candidates" 2>/dev/null while read -r clang_candidate; do llvm_tc=$(realpath "$(dirname "$clang_candidate")/..") echo " Found candidate for LLVM toolchain: $llvm_tc"