diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-06-30 15:44:35 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-06-30 15:44:35 +0000 |
commit | 640d4fdf46127460efbf0a7285d69441fd9eb021 (patch) | |
tree | 0c024cea0d9495a5eef345a857acfb9fbebb2f57 /cmake | |
parent | 6e9bd6a34dcb3f44c5fba1b11168ffb63786f06e (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 675bba6ab36..d4587913522 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/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 -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}") |