File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ MODE := release
1919# we use a bash script with somes heuristics to find clang in current system.
2020CLANG := $(shell $(TOP ) /scripts/find_clang)
2121AR := $(subst clang,llvm-ar,$(CLANG ) )
22+ OBJCOPY := $(subst clang,llvm-objcopy,$(CLANG ) )
2223# When this is set to some value, the generated binaries will be copied over
2324BUILD_DIR :=
2425# Generated binaries to copy. By convention, a Rust crate's directory name will
4142 for binary in $( BINARIES) ; do \
4243 echo " Copying binary $$ binary to build directory" ; \
4344 cp $(TOP ) /target/riscv64imac-unknown-none-elf/$(MODE ) /$$ binary $(TOP ) /$(BUILD_DIR ) ; \
45+ cp $(TOP ) /$(BUILD_DIR ) /$$ binary $(TOP ) /$(BUILD_DIR ) /$$ binary.debug; \
46+ $(OBJCOPY ) --strip-debug --strip-all $(TOP ) /$(BUILD_DIR ) /$$ binary; \
4447 done \
4548 fi
4649
Original file line number Diff line number Diff line change @@ -10,13 +10,8 @@ members = [
1010
1111[profile .release ]
1212overflow-checks = true
13- strip = true
14- codegen-units = 1
15-
16- # This profile is used for debugging with ckb-debugger.
17- [profile .ckb-debug ]
18- inherits = " release"
1913strip = false
14+ codegen-units = 1
2015debug = true
2116
2217# TODO: Will be deleted after release
You can’t perform that action at this time.
0 commit comments