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