Commit a759fb50 authored by Yuchen Deng's avatar Yuchen Deng

Clang: Fix wrong library import on Windows

Change-Id: Iceab41ad8d8a680de39c455aba6961842a34183c
Reviewed-by: default avatarNikolai Kosjar <>
Reviewed-by: default avatarChristian Kandeler <>
parent 856370b6
......@@ -62,5 +62,5 @@ function version(llvmConfig, processOutputReader)
function libraries(targetOS)
return ["clang"] + (targetOS.contains("windows") ? ["advapi32", "shell32"] : [])
return targetOS.contains("windows") ? ["libclang.lib", "advapi32.lib", "shell32.lib"] : ["clang"]
......@@ -22,7 +22,7 @@ QtcTool {
property string llvmConfig: Clang.llvmConfig(qbs, QtcFunctions, QtcProcessOutputReader)
property string llvmIncludeDir: Clang.includeDir(llvmConfig, QtcProcessOutputReader)
property string llvmLibDir: Clang.libDir(llvmConfig, QtcProcessOutputReader)
property string llvmLibs: Clang.libraries(qbs.targetOS)
property stringList llvmLibs: Clang.libraries(qbs.targetOS)
condition: llvmConfig && File.exists(llvmIncludeDir.concat("/clang-c/Index.h"))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment