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
19
19
# we use a bash script with somes heuristics to find clang in current system.
20
20
CLANG := $(shell $(TOP ) /scripts/find_clang)
21
21
AR := $(subst clang,llvm-ar,$(CLANG ) )
22
+ OBJCOPY := $(subst clang,llvm-objcopy,$(CLANG ) )
22
23
# When this is set to some value, the generated binaries will be copied over
23
24
BUILD_DIR :=
24
25
# Generated binaries to copy. By convention, a Rust crate's directory name will
41
42
for binary in $( BINARIES) ; do \
42
43
echo " Copying binary $$ binary to build directory" ; \
43
44
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; \
44
47
done \
45
48
fi
46
49
Original file line number Diff line number Diff line change @@ -10,13 +10,8 @@ members = [
10
10
11
11
[profile .release ]
12
12
overflow-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"
19
13
strip = false
14
+ codegen-units = 1
20
15
debug = true
21
16
22
17
# TODO: Will be deleted after release
You can’t perform that action at this time.
0 commit comments