We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98220f commit 7a01cccCopy full SHA for 7a01ccc
classes/cargo_bin.bbclass
@@ -36,7 +36,7 @@ CARGO_INSTALL_DIR ?= "${D}${bindir}"
36
37
# This is based on the content of CARGO_BUILD_FLAGS and generally will need to
38
# change if CARGO_BUILD_FLAGS changes.
39
-BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}"
+BUILD_DIR = "${@oe.utils.conditional('DEBUG_BUILD', '1', 'debug', 'release', d)}"
40
CARGO_TARGET_SUBDIR="${RUST_TARGET}/${BUILD_DIR}"
41
42
WRAPPER_DIR = "${WORKDIR}/wrappers"
0 commit comments