This repository was archived by the owner on May 27, 2020. It is now read-only.
File tree 2 files changed +7
-4
lines changed 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ path = "efi"
12
12
[lib ]
13
13
name = " akira"
14
14
crate-type = [" staticlib" ]
15
+
16
+ [profile .release ]
17
+ panic = " abort"
18
+ lto = true
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ cargo = \
16
16
17
17
# Runs `cargo rustc` with the specified options
18
18
# $1: Options passed to Cargo
19
- # $2: Options passed to rustc
20
- cargo_rustc = $(call cargo,rustc,$1 -- -C panic=abort -C no-stack-check $2)
19
+ cargo_rustc = $(call cargo,rustc,$1 -- -C panic=abort -C no-stack-check)
21
20
22
21
# Recursive wildcard function
23
22
# http://blog.jgc.org/2011/07/gnu-make-recursive-wildcard-function.html
@@ -44,11 +43,11 @@ ALL_AKIRA_DEPS := $(LIBCORE_RLIB) \
44
43
45
44
# Step 1: Build the custom `libcore`
46
45
$(LIBCORE_RLIB ) : $(call find_rust_files,core/)
47
- cd core && $(call cargo_rustc,--features disable_float, )
46
+ cd core && $(call cargo_rustc,--features disable_float)
48
47
49
48
# Step 2: Compile the EFI stub
50
49
$(LIBAKIRA_A ) : $(ALL_AKIRA_DEPS )
51
- $(call cargo_rustc,,-C lto )
50
+ $(call cargo_rustc,)
52
51
53
52
# Step 3: Link the result into an EFI executable
54
53
$(BOOTX64_EFI ) : $(LIBAKIRA_A )
You can’t perform that action at this time.
0 commit comments