Page MenuHomePhabricator

Change order of libclang_rt.profile link for freebsd
Needs ReviewPublic

Authored by trixirt on Mar 27 2018, 3:41 PM.

Details

Reviewers
emaste
rsmith
Summary

clang -static -coverage foo.c fails because the -lclang_rt.profile-*.a has a dependency on libc but is placed after libc in the link line.
This change place -lclang_rt.profile before -lc.

Diff Detail

Repository
rC Clang

Event Timeline

trixirt created this revision.Mar 27 2018, 3:41 PM
vsk added a subscriber: vsk.Mar 28 2018, 1:24 PM

Could you add a test in test/Driver/instrprof-ld.c?