[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:43 PDT 2025


================
@@ -16,3 +16,18 @@ add_integration_test(
     FRANCE=Paris
     GERMANY=Berlin
 )
+
+# Environment variable functions only make sense in full build mode.
+if(LLVM_LIBC_FULL_BUILD)
+  add_integration_test(
+    setenv_test
+    SUITE
+      stdlib-integration-tests
+    SRCS
+      setenv_test.cpp
+    DEPENDS
+      libc.src.stdlib.getenv
+      libc.src.stdlib.setenv
+      libc.src.string.strcmp
+  )
+endif()
----------------
michaelrj-google wrote:

nit: fix missing newline at end of file

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


More information about the libc-commits mailing list