[libc-commits] [libc] [libc] Use `LIBC_COPT_PUBLIC_PACKAGING` for hermetic and integration tests. (PR #79319)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Jan 26 11:50:05 PST 2024


================
@@ -18,6 +18,13 @@ function(add_unittest_framework_library name)
     set(library_type STATIC)
   endif()
 
+  # When the clock target is available, it will be used inside the test lib
+  # to indicate the performance of the tests.
+  set(clock_target "")
+  if(TARGET libc.src.time.clock)
----------------
jhuber6 wrote:

I forget if this is broken. I think it still makes the target even if the entrypoint is disabled so you need to check the entrypoints list.

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


More information about the libc-commits mailing list