This is an archive of the discontinued LLVM Phabricator instance.

[Driver][Fuchsia] Support -nolibc flag
ClosedPublic

Authored by phosek on Feb 16 2019, 4:38 PM.

Details

Summary

This can be used to disable libc linking. This flag is supported by
GCC since version 9 as well as some Clang target toolchains. This
change also includes tests for all -no* flags which previously weren't
covered.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Feb 16 2019, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2019, 4:38 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
mcgrathr accepted this revision.Feb 16 2019, 4:51 PM

This is only on GCC trunk (i.e. 9), not in 8.2 or even the current gcc-8 branch. So clarify the log entry. We don't know if 8.x,x>2 will add it or only gcc 9.

This revision is now accepted and ready to land.Feb 16 2019, 4:51 PM
phosek updated this revision to Diff 187149.Feb 16 2019, 4:59 PM
phosek edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2019, 5:03 PM