Skip to content

Commit

Permalink
Compile in release mode with debug symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjungwow authored and jeehoonkang committed Aug 13, 2020
1 parent c57bf42 commit 1301316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ U = user
KR = kernel-rs

RUST_TARGET = riscv64gc-unknown-none-elfhf
RUST_MODE = debug
RUST_MODE = release

# OBJS = \
# $K/entry.o \
Expand Down Expand Up @@ -95,7 +95,7 @@ $U/initcode: $U/initcode.S
$(OBJDUMP) -S $U/initcode.o > $U/initcode.asm

$(KR)/target/$(RUST_TARGET)/$(RUST_MODE)/librv6_kernel.a: $(shell find $(KR) -type f)
cargo xbuild --manifest-path kernel-rs/Cargo.toml --target kernel-rs/$(RUST_TARGET).json
cargo xbuild --manifest-path kernel-rs/Cargo.toml --target kernel-rs/$(RUST_TARGET).json --$(RUST_MODE)

tags: $(OBJS) _init
etags *.S *.c
Expand Down
2 changes: 1 addition & 1 deletion kernel-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ test = []

[profile.dev]
panic = "abort"
lto = true

[profile.release]
panic = "abort"
lto = true
debug = true

[dependencies]
bitflags = "1.2.1"
Expand Down

0 comments on commit 1301316

Please sign in to comment.