Skip to content

Commit

Permalink
Fixed inconsistent LLVM version
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 11, 2023
1 parent 03e1a97 commit 22be459
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions subprojects/frontends/llvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ val llvmConfigBinary = try {
val major = version[0]
val minor = version[1]
val patch = version[2]
if (major == "14")
if (major == "15")
"llvm-config"
else
throw IOException()
} catch (e: IOException) {
try {
val output = runCommandForOutput("llvm-config-14", "--version")
val output = runCommandForOutput("llvm-config-15", "--version")
val version = output[0].split('.')
val major = version[0]
val minor = version[1]
val patch = version[2]
if (major == "14")
"llvm-config-14"
if (major == "15")
"llvm-config-15"
else
throw IOException()
} catch (e: IOException) {
println("LLVM-14 not installed, not building native library.")
println("LLVM-15 not installed, not building native library.")
null
}
}
Expand Down

0 comments on commit 22be459

Please sign in to comment.