[libcxx] [test] Fix testing on windows with c++experimental enabled
authorMartin Storsjö <martin@martin.st>
Tue, 23 Mar 2021 08:55:26 +0000 (10:55 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 22 Apr 2021 07:26:00 +0000 (10:26 +0300)
commitcfec0a3e9e70e9a7ce5ca6a0888ba71e2d978767
tree010356a272595c14232c6ae9f51eb6470febd1b0
parent9a930aa5bd2fc4686002d02411141a19f0ad8f36
[libcxx] [test] Fix testing on windows with c++experimental enabled

The straightforward `AddLinkFlag('-lc++experimental')` approach doesn't
work on e.g. MSVC. For linking to libc++ itself, a more convoluted logic
is used (see configure_link_flags_cxx_library).

Differential Revision: https://reviews.llvm.org/D99177
libcxx/utils/libcxx/test/features.py
libcxx/utils/libcxx/test/params.py