Skip to content

Commit c3d9558

Browse files
authored
Merge pull request raspberrypi#708 from ojeda/host-strip
Makefile: strip debug info for Rust host programs
2 parents 8274e3c + 7f2b8a5 commit c3d9558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ export rust_common_flags := --edition=2021 \
461461

462462
KBUILD_HOSTCFLAGS := $(KBUILD_USERCFLAGS) $(HOST_LFS_CFLAGS) $(HOSTCFLAGS)
463463
KBUILD_HOSTCXXFLAGS := -Wall -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS)
464-
KBUILD_HOSTRUSTFLAGS := $(rust_common_flags) -O -Zallow-features= \
465-
$(HOSTRUSTFLAGS)
464+
KBUILD_HOSTRUSTFLAGS := $(rust_common_flags) -O -Cstrip=debuginfo \
465+
-Zallow-features= $(HOSTRUSTFLAGS)
466466
KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS)
467467
KBUILD_HOSTLDLIBS := $(HOST_LFS_LIBS) $(HOSTLDLIBS)
468468

0 commit comments

Comments
 (0)