summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2016-06-30 14:17:42 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2016-06-30 14:17:42 +0000
commit9371770b9eaa7cdff3552f3d3c9b08ccbe47d11d (patch)
tree5f10c6bd5920bf4bf58039c14201f21f56e07b1a /llvm
parent222a9d09f39b9c0bb230ebcc690cb994b75345cf (diff)
downloadbcm5719-llvm-9371770b9eaa7cdff3552f3d3c9b08ccbe47d11d.tar.gz
bcm5719-llvm-9371770b9eaa7cdff3552f3d3c9b08ccbe47d11d.zip
[CMake] -fmodules-local-submodule-visibility is a cc1-only option.
This should fix modules builds on platforms other than Darwin after r274196. llvm-svn: 274227
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index d4587913522..675bba6ab36 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -465,13 +465,13 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
endif()
if (LLVM_ENABLE_MODULES)
set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
- set(module_flags "-fmodules -Xclang -fmodules-cache-path=module.cache")
+ set(module_flags "-fmodules -fmodules-cache-path=module.cache")
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# On Darwin -fmodules does not imply -fcxx-modules.
set(module_flags "${module_flags} -fcxx-modules")
endif()
if (LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY)
- set(module_flags "${module_flags} -fmodules-local-submodule-visibility")
+ set(module_flags "${module_flags} -Xclang -fmodules-local-submodule-visibility")
endif()
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${module_flags}")
OpenPOWER on IntegriCloud