diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-31 09:35:08 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-07-31 09:35:08 +0000 |
commit | f4afd556751138824239fee39f5521dcb956bf88 (patch) | |
tree | 7c2872d728bb031793ed75df41e8dbe020ac4f70 | |
parent | ffdace5fe0e35ae8d1fc8e10b5286c684b8e8b5e (diff) |
libcxxabi: Suppress LLVM_ENABLE_MODULES
Differential Revision: https://reviews.llvm.org/D35542
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@309551 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 94df9f1..456250e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |