Page MenuHomePhabricator

[Driver] -noprofilelib flag
ClosedPublic

Authored by phosek on Jul 11 2019, 12:11 AM.

Details

Reviewers
smeenai
davidxl
Summary

This flag is analoguous to other flags like -nostdlib or -nolibc
and could be used to disable linking of profile runtime library.
This is useful in certain environments like kernel, where profile
instrumentation is still desirable, but we cannot use the standard
runtime library.

Diff Detail

Event Timeline

phosek created this revision.Jul 11 2019, 12:11 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 11 2019, 12:11 AM
Herald added subscribers: Restricted Project, llvm-commits. · View Herald Transcript
davidxl accepted this revision.Jul 11 2019, 7:55 AM

lgtm

This revision is now accepted and ready to land.Jul 11 2019, 7:55 AM
smeenai accepted this revision.Jul 11 2019, 2:45 PM

LGTM

phosek closed this revision.Jul 11 2019, 3:56 PM
kimgr added a subscriber: kimgr.Jul 19 2019, 10:50 PM

On the fuzzer side, there's also -fsanitize=fuzzer-no-link (see http://llvm.org/docs/LibFuzzer.html#fuzzer-usage). Maybe it would be nice to harmonize all these?