It seems to have been added back in 761e42fa3dd72 for Clang to use it,
however it seems to have never been used for that purpose, so it is
probably fine to remove it.
Details
- Reviewers
EricWF rsmith ldionne - Group Reviewers
Restricted Project - Commits
- rG19246b0779a2: [libc++] Remove the __libcpp_version file
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
@EricWF I'm curious since you added this -- am I correct when I claim that this ended up not being used by Clang, or did I miss something? Do you think it's fine to remove it?
Gentle ping. I'll ship this tomorrow unless @rsmith provides more information. Richard, I'll also ping you on Discord just in case.
There was an idea that we could use this to enable / disable version-specific workarounds for libc++/clang incompatibilities (eg, if recent clang sees it's using a sufficiently new version of libc++ then it can avoid enabling a workaround that's only necessary for older versions of libc++). We never implemented the clang side of this, though, so I don't think it's used by anything, and it seems like something we can add back later if there's a motivating use case.
Got it. Also, things have evolved to a point where libc++ and Clang are generally in rough lockstep with each other, so hopefully this shouldn't be necessary. I agree this can be added later if needed, but thanks for the additional context.