mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[CMake] Move the -Xclang option before -fmodules-cache-path
This fixes a typo introduced in r274196. Thanks to Vassil Vassilev for noticing! http://reviews.llvm.org/D21827 rdar://problem/27019000 llvm-svn: 274240
This commit is contained in:
parent
f7a3018b73
commit
394a78928c
@ -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 -fmodules-cache-path=module.cache")
|
||||
set(module_flags "-fmodules -Xclang -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} -Xclang -fmodules-local-submodule-visibility")
|
||||
set(module_flags "${module_flags} -fmodules-local-submodule-visibility")
|
||||
endif()
|
||||
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${module_flags}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user