| Message ID | 201f2082b4da39801247a4e44ed5df98265fc257.1762633051.git.scott.murray@konsulko.com |
|---|---|
| State | New |
| Headers | show |
| Series | Update to Rust 1.90.0 | expand |
diff --git a/classes-recipe/cargo_common.bbclass b/classes-recipe/cargo_common.bbclass index c0f6544..db050ca 100644 --- a/classes-recipe/cargo_common.bbclass +++ b/classes-recipe/cargo_common.bbclass @@ -110,6 +110,10 @@ cargo_common_do_configure () { # Put build output in build directory preferred by bitbake instead of # inside source directory unless they are the same if [ "${B}" != "${S}" ]; then + # We should consider mandating out-of-tree builds and just using [cleandirs] + rm -rf ${B}/target + mkdir -p ${B} + cat <<- EOF >> ${CARGO_HOME}/config.toml [build]