diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-11-09 00:49:18 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-11-09 00:49:18 +0000 |
commit | e884ccb1cb8dfbabcbe4b4b155b1b4e9fb274c1c (patch) | |
tree | 19c71f40f2261c94cc13898ae1d5abf3ec34642d | |
parent | 8003edc9aa0160c777252b6ed8e96fc35f039bd4 (diff) | |
download | bcm5719-llvm-e884ccb1cb8dfbabcbe4b4b155b1b4e9fb274c1c.tar.gz bcm5719-llvm-e884ccb1cb8dfbabcbe4b4b155b1b4e9fb274c1c.zip |
Fix CMake build when building with -fmodules-local-submodule-visibility.
llvm-svn: 346456
-rw-r--r-- | lldb/source/Host/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/CMakeLists.txt b/lldb/source/Host/CMakeLists.txt index 3c16e0b9060..de0ad3c24c9 100644 --- a/lldb/source/Host/CMakeLists.txt +++ b/lldb/source/Host/CMakeLists.txt @@ -11,7 +11,9 @@ endmacro() # Objective-C++ files in lldb (which slows down the build process). macro(remove_module_flags) string(REGEX REPLACE "-fmodules-cache-path=[^ ]+" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + string(REGEX REPLACE "-fmodules-local-submodule-visibility" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") string(REGEX REPLACE "-fmodules" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") + string(REGEX REPLACE "-gmodules" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") string(REGEX REPLACE "-fcxx-modules" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") endmacro() |