[llvm] r274227 - [CMake] -fmodules-local-submodule-visibility is a cc1-only option.
Vassil Vassilev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 07:17:43 PDT 2016
Author: vvassilev
Date: Thu Jun 30 09:17:42 2016
New Revision: 274227
URL: http://llvm.org/viewvc/llvm-project?rev=274227&view=rev
Log:
[CMake] -fmodules-local-submodule-visibility is a cc1-only option.
This should fix modules builds on platforms other than Darwin after r274196.
Modified:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=274227&r1=274226&r2=274227&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Thu Jun 30 09:17:42 2016
@@ -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}")
More information about the llvm-commits
mailing list