Browse Source

Fix: `Unable to find LLVM-config` on Ubuntu

appends a check for llvm-config-14 on linux
TryAngle 2 years ago
parent
commit
b5784bc2ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      build_odin.sh

+ 2 - 0
build_odin.sh

@@ -97,6 +97,8 @@ config_linux() {
 			LLVM_CONFIG=llvm-config-11
 			LLVM_CONFIG=llvm-config-11
 		elif [ -x "$(command -v llvm-config-11-16)" ]; then
 		elif [ -x "$(command -v llvm-config-11-16)" ]; then
 			LLVM_CONFIG=llvm-config-11-64
 			LLVM_CONFIG=llvm-config-11-64
+		elif [ -x "$(command -v llvm-config-14)" ]; then
+			LLVM_CONFIG=llvm-config-14
 		else
 		else
 			panic "Unable to find LLVM-config"
 			panic "Unable to find LLVM-config"
 		fi
 		fi