[llvm] r276667 - cmake: When adding lit testsuites, ignore Output directories
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 25 11:07:14 PDT 2016
Author: bogner
Date: Mon Jul 25 13:07:14 2016
New Revision: 276667
URL: http://llvm.org/viewvc/llvm-project?rev=276667&view=rev
Log:
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!
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=276667&r1=276666&r2=276667&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Mon Jul 25 13:07:14 2016
@@ -1138,7 +1138,8 @@ function(add_lit_testsuites project dire
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()
More information about the llvm-commits
mailing list