libcxxabi: Suppress LLVM_ENABLE_MODULES

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

llvm-svn: 309551
This commit is contained in:
NAKAMURA Takumi 2017-07-31 09:35:08 +00:00
parent a2e7ca99e0
commit 83105a4ae1
1 changed files with 6 additions and 0 deletions

View File

@ -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)