aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylanki <jujjyl@gmail.com>2014-04-10 11:46:42 +0300
committerJukka Jylanki <jujjyl@gmail.com>2014-04-10 11:46:42 +0300
commit88198a1fe0d27db3ba0e1773c5f11ef074ba782d (patch)
tree13c0dfbc97b2a1bd1a643b40d2b91d4daf207ca2
parentf1e7a40a73073cf492a7411acc049af0c729fe8a (diff)
Allow setting CLANG_INCLUDE_TESTS=OFF to avoid having to build long-running tests with cmake. This change is already in upstream LLVM 3.4 repository.
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5d05a4cdb5..bcd5c52578 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -290,10 +290,10 @@ option(CLANG_INCLUDE_TESTS
"Generate build targets for the Clang unit tests."
${LLVM_INCLUDE_TESTS})
-# TODO: docs.
-add_subdirectory(test)
-
if( CLANG_INCLUDE_TESTS )
+ # TODO: docs.
+ add_subdirectory(test) # XXX Emscripten: Backport fix from upstream LLVM 3.4 to actually skip tests if CLANG_INCLUDE_TESTS = OFF
+
add_subdirectory(unittests)
endif()