mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 15:44:04 +00:00
build: uses correct clang++ binary for non-standard versions
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
set -eu
|
||||
|
||||
: ${CPPFLAGS=}
|
||||
: ${CXX=clang++}
|
||||
: ${CXXFLAGS=}
|
||||
: ${LDFLAGS=}
|
||||
: ${LLVM_CONFIG=}
|
||||
@@ -44,6 +43,8 @@ if [ -z "$LLVM_CONFIG" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
: ${CXX=$($LLVM_CONFIG --bindir)/clang++}
|
||||
|
||||
LLVM_VERSION="$($LLVM_CONFIG --version)"
|
||||
LLVM_VERSION_MAJOR="$(echo $LLVM_VERSION | awk -F. '{print $1}')"
|
||||
LLVM_VERSION_MINOR="$(echo $LLVM_VERSION | awk -F. '{print $2}')"
|
||||
|
||||
Reference in New Issue
Block a user