[libc-commits] [libc] [libc] Add POSIX regex stub implementation and build infrastructure (PR #196995)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Tue May 12 05:10:18 PDT 2026


================
@@ -1189,18 +1189,22 @@ if(LLVM_LIBC_FULL_BUILD)
     libc.src.search.twalk
     libc.src.search.twalk_r
 
+    # regex.h entrypoints
+    libc.src.regex.regcomp
+    libc.src.regex.regexec
+    libc.src.regex.regerror
+    libc.src.regex.regfree
----------------
kaladron wrote:

Yes.  I haven't enabled anything for baremetal and don't know how to test it, though.   Baremetal is somewhat missing from our docs at the moment.  Do you have something I can look at?

I could also #yolo it in, but I'm happy to make sure that it's a good quality implementation for you.

This is still very much a stub implementation.  The sketch I have is many many PRs long.  So you definitely shouldn't use this anytime soon!  I'm expecting that it's a few months to land this.

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


More information about the libc-commits mailing list