llvm.org GIT mirror llvm / 39952bd
Revert "[CMake] Move the -Xclang option before -fmodules-cache-path" This reverts commit 3db82f646a0890eb7664d0351b5a3c79622e8bef. Vassil already fixed this and I mechanically undid his fix without looking too close at what I'm actually doing. Need more coffee. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274242 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
464464 endif()
465465 if (LLVM_ENABLE_MODULES)
466466 set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
467 set(module_flags "-fmodules -Xclang -fmodules-cache-path=module.cache")
467 set(module_flags "-fmodules -fmodules-cache-path=module.cache")
468468 if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
469469 # On Darwin -fmodules does not imply -fcxx-modules.
470470 set(module_flags "${module_flags} -fcxx-modules")
471471 endif()
472472 if (LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY)
473 set(module_flags "${module_flags} -fmodules-local-submodule-visibility")
473 set(module_flags "${module_flags} -Xclang -fmodules-local-submodule-visibility")
474474 endif()
475475 set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${module_flags}")
476476