Commit 856370b6 authored by Yuchen Deng's avatar Yuchen Deng

Clang: Fix libclang depends detect on Windows

Change-Id: Ib29a193ccfa177cbfbd0f4e8111aeb2f754dddb6
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent fc6a0c68
......@@ -20,9 +20,10 @@ function llvmConfig(qbs, qtcFunctions, processOutputReader)
];
// Prefer llvm-config* from LLVM_INSTALL_DIR
var suffix = qbs.hostOS.contains("windows") ? ".exe" : "";
if (llvmInstallDirFromEnv) {
for (var i = 0; i < llvmConfigVariants.length; ++i) {
var variant = llvmInstallDirFromEnv + "/bin/" + llvmConfigVariants[i];
var variant = llvmInstallDirFromEnv + "/bin/" + llvmConfigVariants[i] + suffix;
if (isSuitableLLVMConfig(variant, qtcFunctions, processOutputReader))
return variant;
}
......@@ -34,7 +35,7 @@ function llvmConfig(qbs, qtcFunctions, processOutputReader)
var pathList = pathListString.split(separator);
for (var i = 0; i < llvmConfigVariants.length; ++i) {
for (var j = 0; j < pathList.length; ++j) {
var variant = pathList[j] + "/" + llvmConfigVariants[i];
var variant = pathList[j] + "/" + llvmConfigVariants[i] + suffix;
if (isSuitableLLVMConfig(variant, qtcFunctions, processOutputReader))
return variant;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment