[libc-commits] [libc] [libc][stdlib] Implement setenv() with environment management infrastructure (PR #163018)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Wed Oct 22 10:18:42 PDT 2025
================
@@ -65,6 +65,41 @@ add_entrypoint_object(
libc.config.app_h
)
+# Environment variable functions only make sense in full build mode.
+if(LLVM_LIBC_FULL_BUILD)
+ add_object_library(
+ environ_internal
+ SRCS
+ environ_internal.cpp
+ HDRS
+ environ_internal.h
+ DEPENDS
+ libc.config.app_h
+ libc.hdr.types.size_t
+ libc.src.__support.CPP.string_view
+ libc.src.__support.threads.mutex
+ libc.src.stdlib.free
+ libc.src.stdlib.malloc
+ libc.src.string.memcpy
+ )
+
+ add_entrypoint_object(
----------------
michaelrj-google wrote:
nit: The entrypoint object can be outside of the full build check since entrypoints are only evaluated when they're in the entrypoints.txt list.
https://github.com/llvm/llvm-project/pull/163018
More information about the libc-commits
mailing list