[libcxxabi] [test] Fix the mingw test config
authorMartin Storsjö <martin@martin.st>
Thu, 30 Mar 2023 11:40:17 +0000 (14:40 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 19 Apr 2023 10:36:05 +0000 (13:36 +0300)
Don't link libc++abi separately in addition to the main -lc++; in
mingw build configs, libc++abi is always bundled into libc++
(via LIBCXX_ENABLE_STATIC_ABI_LIBRARY).

In the case of a shared linked libc++, linking a separate static
libc++abi leads to linker errors.

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

libcxxabi/test/configs/llvm-libc++abi-mingw.cfg.in

index 5e1a5dc..6f88304 100644 (file)
@@ -8,7 +8,7 @@ config.substitutions.append(('%{compile_flags}',
     '-nostdinc++ -I %{include} -I %{cxx-include} -I %{cxx-target-include} %{maybe-include-libunwind} -I %{libcxx}/test/support -I %{libcxx}/src -D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS'
 ))
 config.substitutions.append(('%{link_flags}',
-    '-nostdlib++ -L %{lib} -lc++ -lc++abi'
+    '-nostdlib++ -L %{lib} -lc++'
 ))
 config.substitutions.append(('%{exec}',
     '%{executor} --execdir %T --env PATH=%{lib} -- '