[llvm] ad1fad1 - Revert "[llvm] [cmake] Set EXCLUDE_FROM_ALL on gtest and TestingSupport"

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 31 07:21:23 PDT 2022


Author: Michał Górny
Date: 2022-10-31T15:21:18+01:00
New Revision: ad1fad17164fa09586dcce11ef68cbbd2ca0cc50

URL: https://github.com/llvm/llvm-project/commit/ad1fad17164fa09586dcce11ef68cbbd2ca0cc50
DIFF: https://github.com/llvm/llvm-project/commit/ad1fad17164fa09586dcce11ef68cbbd2ca0cc50.diff

LOG: Revert "[llvm] [cmake] Set EXCLUDE_FROM_ALL on gtest and TestingSupport"

This reverts commit 64959325eb470489ca5757b9bd6eef97b402a0da.  It broke
the flang-aarch64-out-of-tree buildbot.

Added: 
    

Modified: 
    llvm/lib/Testing/Support/CMakeLists.txt
    llvm/utils/unittest/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Testing/Support/CMakeLists.txt b/llvm/lib/Testing/Support/CMakeLists.txt
index 385d8eca2daa7..81774eb171caa 100644
--- a/llvm/lib/Testing/Support/CMakeLists.txt
+++ b/llvm/lib/Testing/Support/CMakeLists.txt
@@ -1,7 +1,3 @@
-# Do not build unittest libraries automatically, they will be pulled in
-# by unittests if these are built.
-set(EXCLUDE_FROM_ALL ON)
-
 add_llvm_library(LLVMTestingSupport
   Annotations.cpp
   Error.cpp

diff  --git a/llvm/utils/unittest/CMakeLists.txt b/llvm/utils/unittest/CMakeLists.txt
index 302e9e0e84407..0e54e0e57c358 100644
--- a/llvm/utils/unittest/CMakeLists.txt
+++ b/llvm/utils/unittest/CMakeLists.txt
@@ -38,10 +38,6 @@ if (HAVE_LIBPTHREAD)
   list(APPEND LIBS pthread)
 endif()
 
-# Do not build unittest libraries automatically, they will be pulled in
-# by unittests if these are built.
-set(EXCLUDE_FROM_ALL ON)
-
 add_llvm_library(llvm_gtest
   googletest/src/gtest-all.cc
   googlemock/src/gmock-all.cc


        


More information about the llvm-commits mailing list