[Buildroot] [PATCH 0/2] Improve handling of debug builds in cargo packages

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


From: Moritz Bitsch <moritz at h6t.eu>

Cargo supports two build modes: debug and release, where debug is the
default.

In debug build mode most optimizations are disabled, resulting in slow
runtime.

It is also possible to instruct rustc to generate debug symbols
independent of build mode, using RUSTFLAGS.

Moritz Bitsch (2):
  package/pkg-cargo.mk: fix handling of runtime debug builds
  package/pkg-cargo.mk: generate debug symbols when BR2_ENABLE_DEBUG is
    set

 package/pkg-cargo.mk | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

-- 
2.37.3




More information about the buildroot mailing list