Support WITH_CCACHE_BUILD for bundled LLVM

This commit is contained in:
Bryan Drewery
2018-02-25 03:10:33 +00:00
parent 5eb7970174
commit 0d3244c26e
2 changed files with 10 additions and 0 deletions

View File

@@ -198,6 +198,12 @@ post-patch:
done; \
done
.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)
CCACHE_VALUE= true
.else
CCACHE_VALUE= false
.endif
do-configure:
${SED} -E \
-e 's,%PREFIX%,${PREFIX},' \
@@ -206,6 +212,7 @@ do-configure:
-e 's,%PYTHON_CMD%,${PYTHON_CMD},' \
-e 's,%CHANNEL%,${RUST_CHANNEL},' \
-e 's,%TARGET%,${RUST_TARGET},' \
-e 's,%CCACHE%,${CCACHE_VALUE},' \
< ${FILESDIR}/config.toml \
> ${WRKSRC}/config.toml
# The FreeBSD 10 autotools fix may modify some files just before

View File

@@ -24,6 +24,9 @@ mandir = "%MANDIR%"
# Rust release channel.
channel = "%CHANNEL%"
[llvm]
ccache = %CCACHE%
[target.%TARGET%]
[dist]