1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

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
This commit is contained in:
Justin Bogner 2016-07-25 18:07:14 +00:00
parent 19175560ee
commit c5e9eef5d6

View File

@ -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()