diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2020-08-12 16:17:14 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2020-08-12 16:27:37 +0200 |
commit | 9e3d478ed6707d26b2ed2922733c92818770c9fc (patch) | |
tree | 256463c0eb475330ed013a9d6410170553ddf36d /configure.pri | |
parent | cb3d21e8085995e99ab60c66b361ed379054102a (diff) |
qttools: Proper detect Windows for llvm/clang
In qmake code win32 doesn't catch the case when running as a host tool
on Windows, thus skipping important bits.
This fixes libclang linking errors for qdoc.
Change-Id: I63db578e03877b91feb6f8d50ee1fee215f9ad3c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.pri')
-rw-r--r-- | configure.pri | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.pri b/configure.pri index f6cf8e45c..98c52d269 100644 --- a/configure.pri +++ b/configure.pri @@ -203,7 +203,7 @@ defineTest(qtConfTest_libclang) { LLVM_INSTALL_DIR = $$FindCleanLLVMInstallDir() isEmpty(LLVM_INSTALL_DIR) { - win32 { + equals(QMAKE_HOST.os, Windows) { return(false) } } @@ -284,7 +284,7 @@ defineTest(qtConfTest_libclang) { } else { # CI HAS_CLANGCPP = true #just assuming for now - win32 { + equals(QMAKE_HOST.os, Windows) { versionIsAtLeast($$CLANG_VERSION, "10.0.0") { CLANG_DEFINES += CINDEX_NO_EXPORTS } else { |