summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/cargo_common.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass
index c9eb2d09a5..bc44ad7918 100644
--- a/meta/classes-recipe/cargo_common.bbclass
+++ b/meta/classes-recipe/cargo_common.bbclass
@@ -110,6 +110,10 @@ cargo_common_do_configure () {
110 # Put build output in build directory preferred by bitbake instead of 110 # Put build output in build directory preferred by bitbake instead of
111 # inside source directory unless they are the same 111 # inside source directory unless they are the same
112 if [ "${B}" != "${S}" ]; then 112 if [ "${B}" != "${S}" ]; then
113 # We should consider mandating out-of-tree builds and just using [cleandirs]
114 rm -rf ${B}/target
115 mkdir -p ${B}
116
113 cat <<- EOF >> ${CARGO_HOME}/config.toml 117 cat <<- EOF >> ${CARGO_HOME}/config.toml
114 118
115 [build] 119 [build]