[llvm] 9986b88 - [CMake] Filter libc++abi and libunwind from runtimes build in MSVC

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 5 09:59:13 PST 2020


Author: Petr Hosek
Date: 2020-02-05T09:59:06-08:00
New Revision: 9986b88e64f30f5d958eef113bae4c8a098eea93

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

LOG: [CMake] Filter libc++abi and libunwind from runtimes build in MSVC

These don't build on MSVC at the moment, so filter these out altogether
from the list of runtimes and print a warning.

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

Added: 
    

Modified: 
    llvm/runtimes/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 6d68b0715fbf..f6056b62e270 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -27,6 +27,12 @@ if(LLVM_ENABLE_RUNTIMES STREQUAL "all" )
   set(LLVM_ENABLE_RUNTIMES ${LLVM_ALL_RUNTIMES})
 endif()
 foreach(proj ${LLVM_ENABLE_RUNTIMES})
+  # TODO: libunwind and libcxxabi don't currently build on Windows so filter them out.
+  if(MSVC AND ("${proj}" MATCHES "libunwind|libcxxabi"))
+    message(WARNING "Skipping ${proj} which is not supported in MSVC yet")
+    continue()
+  endif()
+
   set(proj_dir "${CMAKE_CURRENT_SOURCE_DIR}/../../${proj}")
   if(IS_DIRECTORY ${proj_dir} AND EXISTS ${proj_dir}/CMakeLists.txt)
     list(APPEND runtimes ${proj_dir})


        


More information about the llvm-commits mailing list