This is an archive of the discontinued LLVM Phabricator instance.

Fix another case where libstdc++ is being inappropriately requested (see r328775) for all platforms.
ClosedPublic

Authored by delcypher on May 3 2018, 11:56 AM.

Details

Summary

Fix another case where libstdc++ is being inappropriately requested (see
r328775) for all platforms.

Given that this is the second occurance of this problem it seemed worth
fixing this problem in a more generic way. r328775 has been reverted and
now a substitution %linux_static_libstdcplusplus has been provided.
This substitution expands to Clang driver arguments to use a static
libstdc++ on Linux and on all other platforms it expands to nothing.

The asan/TestCases/throw_invoke_test.cc and
test/tsan/static_init6.cc test cases now use this substitution.

rdar://problem/39948818

Diff Detail

Event Timeline

delcypher created this revision.May 3 2018, 11:56 AM
Herald added a subscriber: Restricted Project. · View Herald TranscriptMay 3 2018, 11:56 AM
kubamracek accepted this revision.May 11 2018, 8:16 AM
This revision is now accepted and ready to land.May 11 2018, 8:16 AM
kubamracek requested changes to this revision.May 11 2018, 8:18 AM
kubamracek added inline comments.
test/tsan/static_init6.cc
2

This doesn't actually call FileCheck.

This revision now requires changes to proceed.May 11 2018, 8:18 AM
delcypher added inline comments.May 11 2018, 8:47 AM
test/tsan/static_init6.cc
2

Nice catch. I think clang-format might be responsible for this.

delcypher updated this revision to Diff 146565.May 14 2018, 3:02 AM

Fix FileCheck not being executed in test.

delcypher marked 2 inline comments as done.May 14 2018, 3:05 AM
kubamracek accepted this revision.May 14 2018, 7:14 AM
This revision is now accepted and ready to land.May 14 2018, 7:14 AM
This revision was automatically updated to reflect the committed changes.