Skip to content

Commit

Permalink
Merge pull request #134 from CodaFi/bump
Browse files Browse the repository at this point in the history
Bump package config script version
  • Loading branch information
CodaFi authored Mar 17, 2018
2 parents 7ab7cdd + d8ca462 commit 8902d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/make-pkgconfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func makeFile() throws {
}

/// Ensure we have llvm-config in the PATH
guard let llvmConfig = which("llvm-config-3.9") ?? which("llvm-config") ?? brewLLVMConfig() else {
guard let llvmConfig = which("llvm-config-6.0") ?? which("llvm-config") ?? brewLLVMConfig() else {
throw "Failed to find llvm-config. Ensure llvm-config is installed and " +
"in your PATH"
}
Expand All @@ -84,8 +84,8 @@ func makeFile() throws {

let version = (components[0], components[1], components[2])

guard version > (3, 9, 0) else {
throw "LLVMSwift requires LLVM version >=3.9.0, but you have \(versionStr)"
guard version >= (6, 0, 0) else {
throw "LLVMSwift requires LLVM version >=6.0.0, but you have \(versionStr)"
}

print("LLVM version is \(versionStr)")
Expand Down

0 comments on commit 8902d46

Please sign in to comment.