[libc-commits] [libc] [libc] add snmalloc as an alternative allocator to libc (PR #122284)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Fri Jan 24 08:34:40 PST 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 ()
----------------
nickdesaulniers wrote:
Mind reporting this upstream? Seems unfortunate that consumers would need to do this.
https://github.com/llvm/llvm-project/pull/122284
More information about the libc-commits
mailing list