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 25e6a85 commit f98220fCopy full SHA for f98220f
classes/cargo_bin.bbclass
@@ -30,7 +30,7 @@ RUSTFLAGS ??= ""
30
CARGO_FEATURES ??= ""
31
32
# Control the Cargo build type (debug or release)
33
-BUILD_MODE = "${@['--release', ''][d.getVar('DEBUG_BUILD') == '1']}"
+BUILD_MODE = "${@oe.utils.conditional('DEBUG_BUILD', '1', '', '--release', d)}"
34
35
CARGO_INSTALL_DIR ?= "${D}${bindir}"
36
0 commit comments