[PATCH] D39932: [CMake][runtimes] Don't process common options in runtimes build

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 16:58:25 PST 2017


phosek created this revision.
Herald added a subscriber: mgorny.

This is no longer needed for any of the runtimes build and it breaks
in case we don't have the working compiler yet, e.g. when building
a compiler that uses compiler-rt and libc++ as a default runtime,
because these common options check whether these are available.


Repository:
  rL LLVM

https://reviews.llvm.org/D39932

Files:
  runtimes/CMakeLists.txt


Index: runtimes/CMakeLists.txt
===================================================================
--- runtimes/CMakeLists.txt
+++ runtimes/CMakeLists.txt
@@ -83,10 +83,6 @@
     endif()
   endif()
 
-  # Handle common options used by all runtimes.
-  include(AddLLVM)
-  include(HandleLLVMOptions)
-
   set(CMAKE_REQUIRED_FLAGS ${SAFE_CMAKE_REQUIRED_FLAGS})
   set(CMAKE_REQUIRED_LIBRARIES ${SAFE_CMAKE_REQUIRED_LIBRARIES})
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39932.122560.patch
Type: text/x-patch
Size: 427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171111/2342143d/attachment.bin>


More information about the llvm-commits mailing list