Skip to content

Commit 1b1452f

Browse files
chore: better conditional
Co-authored-by: Benji-NW <[email protected]>
1 parent a9f8bd6 commit 1b1452f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/cargo_bin.bbclass

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CARGO_INSTALL_DIR ?= "${D}${bindir}"
3636

3737
# This is based on the content of CARGO_BUILD_FLAGS and generally will need to
3838
# change if CARGO_BUILD_FLAGS changes.
39-
BUILD_DIR = "${@['release', 'debug'][d.getVar('DEBUG_BUILD') == '1']}"
39+
BUILD_DIR = "${@oe.utils.conditional('DEBUG_BUILD', '1', 'debug', 'release', d)}"
4040
CARGO_TARGET_SUBDIR="${RUST_TARGET}/${BUILD_DIR}"
4141

4242
WRAPPER_DIR = "${WORKDIR}/wrappers"

0 commit comments

Comments
 (0)