This allows distinguishing failures in tests that only fail when libcxx
is linked as a DLL, allowing narrowing down XFAILs (avoiding XPASS errors
if not built as a DLL).
If both enable_shared and enable_static are set, the tests link and use
the shared version of the lib.
We don't want to use .enable_shared here. .enable_shared is part of the old config which I'm trying to get rid of one step at a time.
Is there a way to implicitly detect that we're linking against the DLL without being passed that information through cfg.enable_shared?
Alternatively, something we could explore is add a feature that tells us whether the library is linked statically or dynamically (regardless of the platform). Your feature check would then become windows && libcxx-linked-dynamically.