[libcxxabi] r309551 - libcxxabi: Suppress LLVM_ENABLE_MODULES

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 31 02:35:08 PDT 2017


Author: chapuni
Date: Mon Jul 31 02:35:08 2017
New Revision: 309551

URL: http://llvm.org/viewvc/llvm-project?rev=309551&view=rev
Log:
libcxxabi: Suppress LLVM_ENABLE_MODULES

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

Modified:
    libcxxabi/trunk/CMakeLists.txt

Modified: libcxxabi/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/CMakeLists.txt?rev=309551&r1=309550&r2=309551&view=diff
==============================================================================
--- libcxxabi/trunk/CMakeLists.txt (original)
+++ libcxxabi/trunk/CMakeLists.txt Mon Jul 31 02:35:08 2017
@@ -345,6 +345,12 @@ if (LIBCXXABI_HAS_EXTERNAL_THREAD_API)
   endif()
 endif()
 
+if (LLVM_ENABLE_MODULES)
+  # Ignore that the rest of the modules flags are now unused.
+  add_compile_flags_if_supported(-Wno-unused-command-line-argument)
+  add_compile_flags(-fno-modules)
+endif()
+
 set(LIBCXXABI_HAS_UNDEFINED_SYMBOLS OFF)
 if ((NOT LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS)
     OR (LIBCXXABI_BUILD_EXTERNAL_THREAD_LIBRARY AND LIBCXXABI_ENABLE_SHARED)




More information about the cfe-commits mailing list