This is an archive of the discontinued LLVM Phabricator instance.

[Polly][External] Move jsoncpp to lib/External/JSON. NFC.
ClosedPublic

Authored by Meinersbur on Feb 5 2017, 6:54 AM.

Details

Summary

For consistency with isl and ppcg which are already in lib/External.

Further changes might compile jsoncpp into its own library and optionally use the system's version instead. Debian's llvm package currently patches this in. See Debian Wiki and Debian's Polly patch.

Diff Detail

Event Timeline

Meinersbur created this revision.Feb 5 2017, 6:54 AM
grosser accepted this revision.Feb 5 2017, 7:25 AM

Hi Michael,

this LGTM!

Regarding the idea of making this an external library, I am a little hesitant to add more build system features. Traditionally, this always caused bugs. However, if you feel this is the right choice and keep your eyes a little open, feel free to change things here.

One thing that I have thought of already a couple of times was to replace the JSON printer with the LLVM internal YAML printer. This would allow us to drop this external dependency. Even though JSON is (theoretically) a subset of YAML, I am not sure if we would want to exploit this or if we possibly even want to move the JSON printer to YAML. Obviously, this does not impact this very review, but might something to consider.

This revision is now accepted and ready to land.Feb 5 2017, 7:25 AM
Meinersbur closed this revision.Feb 5 2017, 7:40 AM

Forgot to add the differential revision line in the commit.

Committed in: r294126