Fix another case where libstdc++ is being inappropriately requested (see
authorDan Liew <dan@su-root.co.uk>
Mon, 14 May 2018 15:48:49 +0000 (15:48 +0000)
committerDan Liew <dan@su-root.co.uk>
Mon, 14 May 2018 15:48:49 +0000 (15:48 +0000)
commitfe7250c2fa398e7b81ac8874bc5d4a8618885283
tree82cc14f1e6fee54c3b5b3583649d2dc7a039d387
parent421a5960d2a990cdef69dc0c345137a58c214548
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

Differential Revision: https://reviews.llvm.org/D46401

llvm-svn: 332254
compiler-rt/test/asan/TestCases/Linux/throw_invoke_test_libstdcxx.cc [deleted file]
compiler-rt/test/asan/TestCases/throw_invoke_test.cc
compiler-rt/test/lit.common.cfg
compiler-rt/test/tsan/static_init6.cc