Compile with opt-level 3, lto
This commit is contained in:
parent
15fa0ae7a6
commit
68b3315673
4 changed files with 16 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
$(KBUILD)/libcollections.rlib: rust/src/libcollections/Cargo.toml rust/src/libcollections/**
|
||||
mkdir -p $(KBUILD)
|
||||
$(KCARGO) rustc --verbose --manifest-path $< $(KCARGOFLAGS) -o $@
|
||||
$(KCARGO) rustc --manifest-path $< $(KCARGOFLAGS) -o $@
|
||||
cp rust/src/target/$(KTARGET)/release/deps/*.rlib $(KBUILD)
|
||||
|
||||
$(KBUILD)/libkernel.a: kernel/Cargo.toml kernel/arch/** kernel/src/** $(KBUILD)/libcollections.rlib $(BUILD)/initfs.rs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue