Skip to content

Commit

Permalink
Merge pull request #3637 from laytan/revert-clang++-detection
Browse files Browse the repository at this point in the history
revert `$(llvm-config --bindir)/clang++` to get the cpp compiler
  • Loading branch information
gingerBill authored May 26, 2024
2 parents 149ae70 + 5027cfb commit 8421950
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build_odin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ if [ -z "$LLVM_CONFIG" ]; then
fi
fi

: ${CXX=$($LLVM_CONFIG --bindir)/clang++}
if [ -x "$(which clang++)" ]; then
: ${CXX="clang++"}
elif [ -x "$($LLVM_CONFIG --bindir)/clang++" ]; then
: ${CXX=$($LLVM_CONFIG --bindir)/clang++}
else
error "No clang++ command found. Set CXX to proceed."
fi

LLVM_VERSION="$($LLVM_CONFIG --version)"
LLVM_VERSION_MAJOR="$(echo $LLVM_VERSION | awk -F. '{print $1}')"
Expand Down

0 comments on commit 8421950

Please sign in to comment.