[libcxxabi][CMake] Drop unused HandleOutOfTreeLLVM include
authorPetr Hosek <phosek@chromium.org>
Mon, 18 Feb 2019 20:58:06 +0000 (20:58 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 18 Feb 2019 20:58:06 +0000 (20:58 +0000)
This include doesn't seem to be needed for the standalone build (it's
not being used by libc++ build either), but introduces unnecessary
dependency because HandleOutOfTreeLLVM performs checks that require
a working C++ library. We shouldn't require a working C++ library to
build libc++abi or libc++ (it's what we're building after all).

Differential Revision: https://reviews.llvm.org/D58333

llvm-svn: 354284

libcxxabi/cmake/Modules/HandleOutOfTreeLLVM.cmake

index 3296c0c..4420aca 100644 (file)
@@ -93,10 +93,7 @@ macro(configure_out_of_tree_llvm)
     endif()
   endif()
   if (LLVM_FOUND)
-    # Enable warnings, otherwise -w gets added to the cflags by HandleLLVMOptions.
-    set(LLVM_ENABLE_WARNINGS ON)
     include(AddLLVM OPTIONAL)
-    include(HandleLLVMOptions OPTIONAL)
   endif()
 
   # LLVM Options --------------------------------------------------------------