[compiler-rt] [sanitizer_common] posix_spawn test should forward DYLD_LIBRARY_PATH (PR #168795)

Dan Blackwell via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 02:46:35 PST 2025


================
@@ -6,8 +6,12 @@
 #include <assert.h>
 #include <spawn.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <sys/wait.h>
 
+extern char **environ;
----------------
DanBlackwell wrote:

I didn't know about this global. I've only used the 3rd envp arg to main - I didn't know that's not portable, so glad you did know to do this.

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


More information about the llvm-commits mailing list