This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Set ABI version 2 as default for Fuchsia
ClosedPublic

Authored by phosek on Apr 4 2018, 5:09 PM.

Details

Summary

This avoids the need for a custom generated config file which is desired because the custom config files differs per-target which means we cannot reuse headers across different targets.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Apr 4 2018, 5:09 PM
phosek added a comment.Apr 4 2018, 5:09 PM

I don't like this but I'm not sure if there's a better way to do this, do you have any ideas?

phosek edited the summary of this revision. (Show Details)Apr 10 2018, 4:31 PM
EricWF added inline comments.Apr 10 2018, 4:57 PM
libcxx/CMakeLists.txt
100 ↗(On Diff #141091)

I don't think this part of the change is needed. Won't setting ABI_VERSION_DEFAULT to 2 result in a site config header being generated?

phosek updated this revision to Diff 141933.Apr 10 2018, 5:16 PM
phosek marked an inline comment as done.
EricWF accepted this revision.Apr 10 2018, 5:21 PM

LGTM.

libcxx/include/__config
39 ↗(On Diff #141933)

Please indent these nested #ifdefs.

This revision is now accepted and ready to land.Apr 10 2018, 5:21 PM
phosek updated this revision to Diff 141935.Apr 10 2018, 5:31 PM
phosek marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.