This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt] Make unit tests depend on implementation files
ClosedPublic

Authored by dberris on Mar 4 2018, 4:25 PM.

Details

Summary

This change makes changes to XRay implementation files trigger re-builds
of the unit tests. Prior to this change, the unit tests were not built
and run properly if the implementation files were changed during the
development process. This change forces the dependency on all files in
the XRay include and lib hosted files in compiler-rt.

Caveat is, that new files added to the director(ies) will need a re-run
of CMake to re-generate the fileset.

We think this is an OK compromise, since adding new files may
necessitate editing (or adding) new unit tests. It's also less likely
that we're adding new files without updating the CMake configuration to
include the functionality in the XRay runtime implementation anyway.

Diff Detail

Event Timeline

dberris created this revision.Mar 4 2018, 4:25 PM
echristo accepted this revision.Mar 6 2018, 3:02 PM
echristo added a subscriber: echristo.

You can probably just commit this sort of thing for xray.

This revision is now accepted and ready to land.Mar 6 2018, 3:02 PM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptMar 6 2018, 3:10 PM