This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Fix test failures when switching default C++ library
ClosedPublic

Authored by Hahnfeld on Feb 12 2016, 12:20 AM.

Details

Summary
  1. Add two explicit -stdlib=libstdc++ in conjunction with -static-libstdc++
  2. Pass -nostdinc++ when adding include paths for libc++ built for tsan. This prevents clang finding the headers twice which would confuse #include_next

Diff Detail

Repository
rL LLVM

Event Timeline

Hahnfeld updated this revision to Diff 47772.Feb 12 2016, 12:20 AM
Hahnfeld retitled this revision from to [compiler-rt] Fix test failures when switching default C++ library.
Hahnfeld updated this object.
Hahnfeld added reviewers: samsonov, kcc, dvyukov.
Hahnfeld added a subscriber: llvm-commits.
dvyukov accepted this revision.Feb 14 2016, 11:28 PM
dvyukov edited edge metadata.
This revision is now accepted and ready to land.Feb 14 2016, 11:28 PM
This revision was automatically updated to reflect the committed changes.