aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
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