We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9f8bd6 commit 1b1452fCopy full SHA for 1b1452f
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