From 58c8fc86d141469071f7c24d9f4da19bbd3b3ec6 Mon Sep 17 00:00:00 2001 From: WangRunji Date: Tue, 22 May 2018 00:54:18 +0800 Subject: [PATCH] Fix 'make run' --- Cargo.toml | 3 +++ Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d37cce0..049abb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,6 +12,9 @@ test = [] qemu_auto_exit = [] link_user_program = [] +[profile.release] +debug = true + [dependencies] bit_field = "0.7.0" rlibc = "1.0" diff --git a/Makefile b/Makefile index 3ea7054..45611c8 100644 --- a/Makefile +++ b/Makefile @@ -104,7 +104,7 @@ $(kernel): kernel $(rust_os) $(assembly_object_files) $(linker_script) $(assembly_object_files) $(rust_os) kernel: - @RUSTFLAGS=-g RUST_TARGET_PATH=$(shell pwd) CC=$(cc) xargo build $(build_args) + @RUST_TARGET_PATH=$(shell pwd) CC=$(cc) xargo build $(build_args) # compile assembly files build/arch/$(arch)/boot/%.o: $(boot_src)/%.asm