This is an archive of the discontinued LLVM Phabricator instance.

[CMake][libcxx] Use builtins rather than gcc_s when compiler-rt is requested
ClosedPublic

Authored by phosek on Apr 3 2017, 12:34 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Apr 3 2017, 12:34 PM
phosek updated this revision to Diff 93955.Apr 3 2017, 3:09 PM
beanz accepted this revision.Apr 3 2017, 3:11 PM

Looks reasonable to me.

This revision is now accepted and ready to land.Apr 3 2017, 3:11 PM

See also: D25568. It served the same goal, except that it didn't require the user to explicitly indicate which runtime is enabled in his compiler (i.e. supported clang with compiler-rt by default out of the box). I'm not sure if having both makes sense now; however, I feel like having to figure out whether the compiler is using compiler-rt or libgcc and setting flags appropriately would kinda suck.

phosek added a comment.Apr 5 2017, 3:02 PM

I'd prefer not having to manually specify which runtime to use as well, but it seems like there're still some unresolved issues in D25568. This change is just a fix to ensure that the existing logic works in all cases. If D25568 gets approved and lands I'd be fine if it replaces the this logic.

This revision was automatically updated to reflect the committed changes.