-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor system library claculation to better handle
-nostdlib
and …
…friends. (#15618) This refactoring splits out `get_libs_to_link` into its own function which can early return once the list is complete. The follow gcc/clang flags are now (kind of) supported: - `-nostartfiles` - don't link crt1 and other startup files - `-nolibc` - don't link libc - `-nodefualtlibs`- don't link libc or compiler-rt or other stdlibs (but do link startup files) - `-nostdlib` - don't link any system libraries or startup files.
- Loading branch information
Showing
3 changed files
with
91 additions
and
73 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