[Buildroot] [PATCH 1/2] package/pkg-cargo.mk: fix handling of runtime debug builds

moritz at h6t.eu moritz at h6t.eu
Wed Oct 19 22:00:18 UTC 2022


From: Moritz Bitsch <moritz at h6t.eu>

The cargo --release flag is used to create optimized builds, not supplying
--release has major performance implications.

Signed-off-by: Moritz Bitsch <moritz at h6t.eu>
---
 package/pkg-cargo.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/pkg-cargo.mk b/package/pkg-cargo.mk
index f7e3f39503..e0556252fa 100644
--- a/package/pkg-cargo.mk
+++ b/package/pkg-cargo.mk
@@ -119,7 +119,7 @@ define $(2)_BUILD_CMDS
 		$$($(2)_CARGO_ENV) \
 		cargo build \
 			--offline \
-			$$(if $$(BR2_ENABLE_DEBUG),,--release) \
+			$$(if $$(BR2_ENABLE_RUNTIME_DEBUG),,--release) \
 			--manifest-path Cargo.toml \
 			--locked \
 			$$($(2)_CARGO_BUILD_OPTS)
-- 
2.37.3




More information about the buildroot mailing list