aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2021-11-25 08:55:43 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2021-11-25 20:01:04 +0000
commitc4816e4763b8d395b4a2cb670a8aaaf33bb8def1 (patch)
tree128a502cf98a31802eee925e2973b0cb68beb4cf /lang
parent101ba9b46e0cda501d10e826028da54bce564181 (diff)
Diffstat (limited to 'lang')
-rw-r--r--lang/rust-bootstrap/Makefile1
-rw-r--r--lang/rust/Makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/lang/rust-bootstrap/Makefile b/lang/rust-bootstrap/Makefile
index e830957fdec0..6e0fa184ffdc 100644
--- a/lang/rust-bootstrap/Makefile
+++ b/lang/rust-bootstrap/Makefile
@@ -96,6 +96,7 @@ do-configure:
${SH} ${SCRIPTSDIR}/rust-compat11-canary.sh
@${ECHO_CMD} 'changelog-seen=2' > ${WRKSRC}/config.toml
@${ECHO_CMD} '[build]' >> ${WRKSRC}/config.toml
+ @${ECHO_CMD} 'build-dir="${WRKDIR}/_build"' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'vendor=true' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'extended=false' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'python="${PYTHON_CMD}"' >> ${WRKSRC}/config.toml
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index 5a2aee23f2df..fd1f85d6f42f 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -168,6 +168,7 @@ do-configure:
.endfor
@${ECHO_CMD} 'changelog-seen=2' > ${WRKSRC}/config.toml
@${ECHO_CMD} '[build]' >> ${WRKSRC}/config.toml
+ @${ECHO_CMD} 'build-dir="${WRKDIR}/_build"' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'build-stage=2' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'doc-stage=2' >> ${WRKSRC}/config.toml
@${ECHO_CMD} 'test-stage=2' >> ${WRKSRC}/config.toml