Skip to content

Commit a9f8bd6

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/cargo_bin.bbclass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUSTFLAGS ??= ""
3030
CARGO_FEATURES ??= ""
3131

3232
# Control the Cargo build type (debug or release)
33-
BUILD_MODE = "${@['--release', ''][d.getVar('DEBUG_BUILD') == '1']}"
33+
BUILD_MODE = "${@oe.utils.conditional('DEBUG_BUILD', '1', '', '--release', d)}"
3434

3535
CARGO_INSTALL_DIR ?= "${D}${bindir}"
3636

0 commit comments

Comments
 (0)