mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
Mk/bsd.ccache.mk: Improve ccache support for ports using cmake
- Make ports cmake macros honor NO_CACHE - Make ports cmake macros honor CCACHE_BIN instead of hardcoding the binary name PR: 284893 Reviewed by: makc Approved by: makc Differential Revision: https://reviews.freebsd.org/D49662
This commit is contained in:
+5
-6
@@ -103,14 +103,13 @@ ${WRKDIR}/.ccache: ${WRKDIR}
|
||||
@${LN} -sf ${CCACHE_DIR} ${WRKDIR}/.ccache
|
||||
ccache-wrkdir-link: ${WRKDIR}/.ccache .PHONY
|
||||
post-extract: ccache-wrkdir-link
|
||||
. endif
|
||||
|
||||
# enable ccache in case of USES=llvm and cmake
|
||||
. if ${CCACHE_ENABLED} == yes && \
|
||||
defined(_INCLUDE_USES_LLVM_MK) && \
|
||||
defined(_INCLUDE_USES_CMAKE_MK)
|
||||
CMAKE_ARGS+= -DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
. if defined(_INCLUDE_USES_LLVM_MK) && \
|
||||
defined(_INCLUDE_USES_CMAKE_MK)
|
||||
CMAKE_ARGS+= -DCMAKE_C_COMPILER_LAUNCHER=${CCACHE_BIN} \
|
||||
-DCMAKE_CXX_COMPILER_LAUNCHER=${CCACHE_BIN}
|
||||
. endif
|
||||
. endif
|
||||
|
||||
.endif
|
||||
|
||||
Reference in New Issue
Block a user