summaryrefslogtreecommitdiffstats
path: root/llvm/cmake
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-07-25 18:07:14 +0000
committerJustin Bogner <mail@justinbogner.com>2016-07-25 18:07:14 +0000
commit25ef9e34c9de7b1edc327189b78200459337f7e5 (patch)
tree4120a4c9b6a850fa39dd95d9206c775882570203 /llvm/cmake
parentce8d82775c2524b3ee8d39324f88bc72fad6c02f (diff)
downloadbcm5719-llvm-25ef9e34c9de7b1edc327189b78200459337f7e5.tar.gz
bcm5719-llvm-25ef9e34c9de7b1edc327189b78200459337f7e5.zip
cmake: When adding lit testsuites, ignore Output directories
With in-tree builds we can get Output directories scattered among our tests. Recursing into those to find tests doesn't make sense. Thanks to nlewycky for noticing this! llvm-svn: 276667
Diffstat (limited to 'llvm/cmake')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 582f318e421..9cd46ebc730 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -1138,7 +1138,8 @@ function(add_lit_testsuites project directory)
continue()
endif()
string(FIND ${lit_suite} Inputs is_inputs)
- if (NOT is_inputs EQUAL -1)
+ string(FIND ${lit_suite} Output is_output)
+ if (NOT (is_inputs EQUAL -1 AND is_output EQUAL -1))
continue()
endif()
OpenPOWER on IntegriCloud