From f5e5e33e94e2212bdf32af7c64b04096e733991a Mon Sep 17 00:00:00 2001 From: Kofi Gumbs Date: Sat, 21 Jan 2017 16:32:39 -0700 Subject: [PATCH] Try explicit version number first --- utils/make-pkgconfig.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/make-pkgconfig.swift b/utils/make-pkgconfig.swift index aeddec30..ae3228cd 100644 --- a/utils/make-pkgconfig.swift +++ b/utils/make-pkgconfig.swift @@ -58,7 +58,7 @@ func makeFile() throws { let cllvmPath = pkgConfigDir.appendingPathComponent("cllvm.pc") /// Ensure we have llvm-config in the PATH - guard let llvmConfig = which("llvm-config") else { + guard let llvmConfig = which("llvm-config-3.9") ?? which("llvm-config") else { throw "Failed to find llvm-config. Ensure llvm-config is installed and " + "in your PATH" }