[libc-commits] [libc] [libc] add snmalloc as an alternative allocator to libc (PR #122284)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Wed Mar 26 12:42:55 PDT 2025


================
@@ -0,0 +1,110 @@
+set(SNMALLOC_USE_SELF_VENDORED_STL ON CACHE BOOL "use freestanding snmalloc setup" FORCE)
+set(SNMALLOC_BUILD_TESTING OFF CACHE BOOL "disable snmalloc tests" FORCE)
+set(SNMALLOC_HEADER_ONLY_LIBRARY ON CACHE BOOL "use snmalloc as header only library" FORCE)
+
+# Disable installation
+macro (install)
+endmacro ()
----------------
SchrodingerZhu wrote:

This is fixed now. Maybe it was due to my cmake cache.

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


More information about the libc-commits mailing list