summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2016-09-29 08:14:06 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2016-09-29 08:14:06 +0000
commit71e9e44ae97bcb72e0020961d8e10b57d05d57d4 (patch)
treed34c8ebdde7d532357a9a30b9ea0929bf9c846f5
parent49df799762bd4f3824cfaf1c971c2d0a6ce02caf (diff)
downloadbcm5719-llvm-71e9e44ae97bcb72e0020961d8e10b57d05d57d4.tar.gz
bcm5719-llvm-71e9e44ae97bcb72e0020961d8e10b57d05d57d4.zip
[modules] Centralize the module cache.
This reduces the build size from 17G to 1.9G on my machine. llvm-svn: 282704
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 02685483808..3c1d0d7e7b1 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -475,7 +475,7 @@ 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 -fmodules-cache-path=${PROJECT_BINARY_DIR}/module.cache")
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# On Darwin -fmodules does not imply -fcxx-modules.
set(module_flags "${module_flags} -fcxx-modules")
OpenPOWER on IntegriCloud