[libc-commits] [libc] [libc] NVPTX Profiling Draft (PR #92009)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed May 22 13:14:29 PDT 2024


================
@@ -651,6 +651,13 @@ function(add_libc_hermetic_test test_name)
     endif()
   endforeach()
 
+  # Benchmarks requires a separate library with a different `main` function
+  if(HERMETIC_TEST_IS_BENCHMARK)
----------------
jhuber6 wrote:

The benchmark target is redundant since you're already passing it. Move the `libcTest.hermetic` target into the invocation of this function via `LINK_LIBRARIES`.

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


More information about the libc-commits mailing list