[libcxx] [test] Convert an XFAIL LIBCXX-WINDOWS-FIXME into UNSUPPORTED with explanation
authorMartin Storsjö <martin@martin.st>
Wed, 26 May 2021 10:22:23 +0000 (10:22 +0000)
committerMartin Storsjö <martin@martin.st>
Thu, 27 May 2021 20:51:24 +0000 (23:51 +0300)
Differential Revision: https://reviews.llvm.org/D103149

libcxx/test/libcxx/debug/extern-templates.sh.cpp

index 3e8e0b7..e0fa310 100644 (file)
 // UNSUPPORTED: libcxx-no-debug-mode
 // UNSUPPORTED: libcpp-has-no-localization
 
-// XFAIL: LIBCXX-WINDOWS-FIXME
+// This test relies on linking a shared library and then passing that shared
+// library as input when linking an executable; this is generally not supported
+// on Windows (GNU ld supports it, but MS link.exe and LLD don't) - one has to
+// use an import library instead. (Additionally, the test uses the -fPIC
+// option which clang doesn't accept on Windows.)
+// UNSUPPORTED: windows
 
 // RUN: %{cxx} %{flags} %{compile_flags} %s %{link_flags} -fPIC -DTU1 -D_LIBCPP_DEBUG=1 -fvisibility=hidden -shared -o %t.lib
 // RUN: cd %T && %{cxx} %{flags} %{compile_flags} %s ./%basename_t.tmp.lib %{link_flags} -fPIC -DTU2 -D_LIBCPP_DEBUG=1 -fvisibility=hidden -o %t.exe