[PATCH] D41757: Add a config note and fix a config variable regarding CCACHE support.
Matt Davis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 5 14:39:32 PST 2018
mattd updated this revision to Diff 128807.
mattd retitled this revision from "[Docs] Add a configuration note about building with CCACHE support." to "Add a config note and fix a config variable regarding CCACHE support.".
mattd edited the summary of this revision.
https://reviews.llvm.org/D41757
Files:
CMakeLists.txt
docs/CMake.rst
Index: docs/CMake.rst
===================================================================
--- docs/CMake.rst
+++ docs/CMake.rst
@@ -551,6 +551,13 @@
<http://clang.llvm.org/docs/SourceBasedCodeCoverage.html>`_ instrumentation
is enabled while building llvm.
+**LLVM_CCACHE_BUILD**:BOOL
+ If enabled and the ``ccache`` program is available, then LLVM will be
+ built using ``ccache`` to speed up rebuilds of LLVM and its components.
+ Defaults to OFF. The size and location of the cache maintained
+ by ``ccache`` can be adjusted via the LLVM_CCACHE_MAXSIZE and LLVM_CCACHE_DIR
+ options respectively.
+
CMake Caches
============
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -137,11 +137,11 @@
if(LLVM_CCACHE_BUILD)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
- set(LLVM_CCACHE_SIZE "" CACHE STRING "Size of ccache")
+ set(LLVM_CCACHE_MAXSIZE "" CACHE STRING "Size of ccache")
set(LLVM_CCACHE_DIR "" CACHE STRING "Directory to keep ccached data")
set(CCACHE_PROGRAM "CCACHE_CPP2=yes CCACHE_HASHDIR=yes ${CCACHE_PROGRAM}")
- if (LLVM_CCACHE_SIZE)
- set(CCACHE_PROGRAM "CCACHE_SIZE=${LLVM_CCACHE_SIZE} ${CCACHE_PROGRAM}")
+ if (LLVM_CCACHE_MAXSIZE)
+ set(CCACHE_PROGRAM "CCACHE_MAXSIZE=${LLVM_CCACHE_MAXSIZE} ${CCACHE_PROGRAM}")
endif()
if (LLVM_CCACHE_DIR)
set(CCACHE_PROGRAM "CCACHE_DIR=${LLVM_CCACHE_DIR} ${CCACHE_PROGRAM}")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41757.128807.patch
Type: text/x-patch
Size: 1517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180105/371867e4/attachment.bin>
More information about the llvm-commits
mailing list