From 88198a1fe0d27db3ba0e1773c5f11ef074ba782d Mon Sep 17 00:00:00 2001 From: Jukka Jylanki Date: Thu, 10 Apr 2014 11:46:42 +0300 Subject: 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. --- CMakeLists.txt | 6 +++--- 1 file 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() -- cgit v1.2.3-18-g5258