summaryrefslogtreecommitdiff
path: root/lib/xray
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2016-12-06 09:43:44 +0000
committerDean Michael Berris <dberris@google.com>2016-12-06 09:43:44 +0000
commit4d4b258a8500b0055e7090eeefd0b52e93b9b8a3 (patch)
tree6d2543a56c6bd86c6435a8b096e4d80dea0ab3d4 /lib/xray
parent927ae7cfc76024af13912779db6bd356325675d7 (diff)
[XRay][compiler-rt] Only add unit tests if we're building XRay.
As constructed before this patch, in case we run into case where we don't actually build the XRay library, we really ought to not be adding the unit test runs. This should fix the bootstrap build failures. This is a follow-up further to D26232. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@288788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray')
-rw-r--r--lib/xray/tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xray/tests/CMakeLists.txt b/lib/xray/tests/CMakeLists.txt
index cdccd776b..72bfb91e0 100644
--- a/lib/xray/tests/CMakeLists.txt
+++ b/lib/xray/tests/CMakeLists.txt
@@ -53,6 +53,6 @@ macro(add_xray_unittest testname)
endif()
endmacro()
-if(COMPILER_RT_CAN_EXECUTE_TESTS AND NOT ANDROID)
+if(COMPILER_RT_CAN_EXECUTE_TESTS)
add_subdirectory(unit)
endif()