Skip to content

Commit

Permalink
Restrict LLVM search area to /usr/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickgold committed Dec 7, 2023
1 parent ba68c4a commit 9e60a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9e60a69

Please sign in to comment.