summaryrefslogtreecommitdiff
path: root/tests/tests.pro
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-11-16 10:56:28 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-11-22 08:47:05 +0000
commit5e0639542fe753a3abe5d8412c2b368517b9b02e (patch)
tree11953cb00457a505734e8b8cbeb76793870c16d5 /tests/tests.pro
parentb0137c3a01843ef8b16550b4c5d63c92aa9b8275 (diff)
downloadqt-creator-5e0639542fe753a3abe5d8412c2b368517b9b02e.tar.gz
Add some sanity to the clang detection code for qmake build
llvm-config can usually be found in PATH on systems which have standard paths at all. There is no need to specify LLVM_INSTALL_DIR then. Furthermore, llvm-config has an option --bindir which will tell us the directory where clang can be found (if installed). No need to apply strange heuristics based on LLVM_INSTALL_DIR. Finally, we can check within each .pro file for the conditions to be met using qmake's require() function. This way we don't need to fiddle with LLVM_INSTALL_DIR in unrelated places. Change-Id: I1a6ab092b06de40dfbfa4a9e7053451360fd24c8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'tests/tests.pro')
-rw-r--r--tests/tests.pro4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/tests.pro b/tests/tests.pro
index a7c5bc6bd2..08d0e9438d 100644
--- a/tests/tests.pro
+++ b/tests/tests.pro
@@ -1,4 +1,2 @@
TEMPLATE=subdirs
-SUBDIRS += auto manual tools
-isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
-exists($$LLVM_INSTALL_DIR):SUBDIRS += unit
+SUBDIRS += auto manual tools unit