[libc-commits] [libc] [libc] force GCC limits.h to not include_next limits.h (PR #79211)

via libc-commits libc-commits at lists.llvm.org
Tue Jan 23 15:08:31 PST 2024


================
@@ -136,6 +138,7 @@ add_libc_test(
     clock_test.cpp
   DEPENDS
     libc.include.time
-    libc.src.time.clock
+    libc.src.__support.CPP.limits
----------------
michaelrj-google wrote:

The reason the build doesn't fail when you add an invalid dependency is because the cmake checks the dependencies when it's generating the targets. If you turn on verbose logging you should see something like `-- Skipping unittest libc.test.src.time.clock_test.__unit__ as it has missing deps: libc.src.asdfasdfasdf.` when you rerun the cmake, and also if you specifically run that test with `ninja libc.test.src.time.clock_test.__unit__` it will say it can't find the target.

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


More information about the libc-commits mailing list