[libcxx-commits] [libcxxabi] [libc++abi][test][VE] Add '-ldl' to support VE (PR #66605)
Kazushi Marukawa via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 28 01:47:04 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'
----------------
kaz7 wrote:
Oh. Sorry, I meant `RUNTIMES_ve-unknown-linux-gnu_LIBCXX_TEST_COMPILER_CFLAGS`. I chopped it wrongly. It's not a flag to specify library, but it is possible to use so.
Thank you for considering that. I'm going to use above flag at this moment. I'd like to be back with more common way to fix this.
https://github.com/llvm/llvm-project/pull/66605
More information about the libcxx-commits
mailing list