This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] On OS X, explicitly use libc++
ClosedPublic

Authored by kubamracek on Mar 25 2015, 1:30 PM.

Details

Reviewers
samsonov
Summary

For OS X builds, both Make and CMake, let's be very explicit about using libc++ and libc++abi with:

  1. -stdlib=libc++ in CFLAGS and LDFLAGS for all platforms
  2. -lc++ in LDFLAGS for all platforms
  3. switch from -undefined dynamic_lookup to -lc++abi for UBSan in Makefile-based builds

Diff Detail

Event Timeline

kubamracek updated this revision to Diff 22674.Mar 25 2015, 1:30 PM
kubamracek retitled this revision from to [compiler-rt] On OS X, explicitly use libc++.
kubamracek updated this object.
kubamracek edited the test plan for this revision. (Show Details)
kubamracek added subscribers: Unknown Object (MLST), zaks.anna, samsonov, glider.
samsonov accepted this revision.Mar 25 2015, 2:01 PM
samsonov added a reviewer: samsonov.

LGTM

This revision is now accepted and ready to land.Mar 25 2015, 2:01 PM
kubamracek closed this revision.Mar 25 2015, 2:10 PM

Landed in r233215.