-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for opting out of ThinLTO and clean up LTO related cli flag han…
…dling.
- Loading branch information
1 parent
4efc0a7
commit 24093a6
Showing
8 changed files
with
97 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
-include ../tools.mk | ||
|
||
all: | ||
all: noparam bool_true bool_false thin fat | ||
|
||
noparam: | ||
$(RUSTC) lib.rs | ||
$(RUSTC) main.rs -C lto | ||
$(call RUN,main) | ||
|
||
bool_true: | ||
$(RUSTC) lib.rs | ||
$(RUSTC) main.rs -C lto=yes | ||
$(call RUN,main) | ||
|
||
|
||
bool_false: | ||
$(RUSTC) lib.rs | ||
$(RUSTC) main.rs -C lto=off | ||
$(call RUN,main) | ||
|
||
thin: | ||
$(RUSTC) lib.rs | ||
$(RUSTC) main.rs -C lto=thin | ||
$(call RUN,main) | ||
|
||
fat: | ||
$(RUSTC) lib.rs | ||
$(RUSTC) main.rs -C lto=fat | ||
$(call RUN,main) | ||
|