HomePhabricator

[Darwin] Introduce a new flag, -fapple-link-rtlib that forces linking of the…

Description

[Darwin] Introduce a new flag, -fapple-link-rtlib that forces linking of the builtins library.

This driver flag is useful when users want to link against the compiler's
builtins, but nothing else, and so use flags like -nostdlib.

Darwin can't use -nolibc & nostdlib++ like other platforms on because we
disable all runtime lib linking with -static, which we still want to have
an option to link with the builtins.

Differential Revision: https://reviews.llvm.org/D58320

Details

Committed
aemersonMay 10 2019, 4:24 PM
Differential Revision
D58320: [Darwin] Introduce a new flag, -fapple-link-rtlib that forces linking of the builtins library.
Branches
Unknown
Tags
Unknown