This is an archive of the discontinued LLVM Phabricator instance.

Run profile tests on FreeBSD
ClosedPublic

Authored by emaste on Oct 7 2014, 7:12 AM.

Details

Summary

FreeBSD does not have libdl, so set it via lit.cfg as with asan. Add FreeBSD to the list of hosts to test.

Diff Detail

Repository
rL LLVM

Event Timeline

emaste updated this revision to Diff 14509.Oct 7 2014, 7:12 AM
emaste retitled this revision from to Run profile tests on FreeBSD.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added a subscriber: Unknown Object (MLST).
emaste updated this revision to Diff 14516.Oct 7 2014, 9:18 AM

Use libdl only on Linux as suggested by Joerg S.

-ldl is unnecessary but harmless on OS X; with this 2nd change it will no longer be added there.

emaste added inline comments.Oct 7 2014, 9:20 AM
test/profile/lit.cfg
47 ↗(On Diff #14516)

(accidental shuffling here - should be in alpha order)

emaste updated this revision to Diff 14517.Oct 7 2014, 9:22 AM

Diff against correct base version

samsonov added inline comments.
test/profile/lit.cfg
28 ↗(On Diff #14517)

I believe you should actually use extra_linkflags somewhere (e.g. in build_invocation).

emaste updated this revision to Diff 14523.Oct 7 2014, 11:48 AM

Fix use of extra_linkflags as noted by Alexey Samsonov

Note, this change means that we'll add -ldl to all tests on Linux. This already happens for asan and I don't think it's a problem.

samsonov accepted this revision.Oct 7 2014, 12:16 PM
samsonov added a reviewer: samsonov.

Yeah, I don't think adding -ldl is a big deal.

This revision is now accepted and ready to land.Oct 7 2014, 12:16 PM
emaste closed this revision.Oct 7 2014, 12:34 PM
emaste updated this revision to Diff 14525.

Closed by commit rL219227 (authored by @emaste).