[libcxx-commits] [libcxx] [libcxx] Add testing configuration for GPU targets (PR #104515)

Joseph Huber via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 11 09:27:37 PDT 2024


================
@@ -30,3 +30,7 @@ config.substitutions.append(('%{target-include-dir}', '@LIBCXX_TESTING_INSTALL_P
 config.substitutions.append(('%{lib-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_LIBRARY_DIR@'))
 config.substitutions.append(('%{module-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_MODULES_DIR@'))
 config.substitutions.append(('%{test-tools-dir}', '@LIBCXX_TEST_TOOLS_PATH@'))
+
+# Available if building libc++ on top of llvm-libc.
+config.substitutions.append(('%{libc-dir}', '@LIBCXX_LIBC_LIBRARY_DIR@'))
+config.substitutions.append(('%{libc-include-dir}', '@LIBCXX_LIBC_INCLUDE_DIR@'))
----------------
jhuber6 wrote:

This is a GPU, executing stuff this way is the exceptions exception. I actually used to link `-lc` by default but that turned out to be a huge pain to deal with when working with the build systems so I removed it. I could *possibly* make an argument like `-stdlib` and `-startfiles` that adds that in this case, since it should know where to find them. However these positive versions of those flags don't really exist, so it'd need to be a new clang flag that's really specific.

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


More information about the libcxx-commits mailing list