[libcxx-commits] [libcxxabi] [libc++abi][test][VE] Add '-ldl' to support VE (PR #66605)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 27 11:38:10 PDT 2023


================
@@ -0,0 +1,28 @@
+# This testing configuration handles running the test suite against LLVM's
+# libc++ for VE using a shared library.
+
+lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
+
+config.substitutions.append(('%{flags}',
+    '-pthread' + (' -isysroot {}'.format('@CMAKE_OSX_SYSROOT@') if '@CMAKE_OSX_SYSROOT@' else '')
+))
+config.substitutions.append(('%{compile_flags}',
+    '-nostdinc++ -I %{include} -I %{target-include} -I %{libcxx}/test/support'
+))
+# VE requires libdl library.
+config.substitutions.append(('%{link_flags}',
+    '-nostdlib++ -L %{lib} -Wl,-rpath,%{lib} -lc++ -ldl'
----------------
ldionne wrote:

IMO having a config file for `ve` is the right way to go if it has needs that are not met by the other config files. Basically, this should encode how to run a hello-world program on `ve`.

Although I don't think that's the right way to go anyway, I didn't find `_LIBCXX_TEST_COMPILER_CFLAGS` -- I'm still curious to understand what you meant there.

https://github.com/llvm/llvm-project/pull/66605


More information about the libcxx-commits mailing list