From a5134d18945a823a5995f26ebc05359bc9f33b34 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 18 Nov 2017 17:33:44 +0800 Subject: libproc_macro - Hacky debugging prints --- src/expand/proc_macro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/expand/proc_macro.cpp') diff --git a/src/expand/proc_macro.cpp b/src/expand/proc_macro.cpp index bd017e20..7752162c 100644 --- a/src/expand/proc_macro.cpp +++ b/src/expand/proc_macro.cpp @@ -741,8 +741,8 @@ ProcMacroInv::ProcMacroInv(const Span& sp, const char* executable, const char* m posix_spawn_file_actions_addclose(&file_actions, stdout_pipes[1]); char* argv[3] = { const_cast(executable), const_cast(macro_name), nullptr }; - char* envp[] = { nullptr }; - int rv = posix_spawn(&this->child_pid, executable, &file_actions, nullptr, argv, envp); + //char* envp[] = { nullptr }; + int rv = posix_spawn(&this->child_pid, executable, &file_actions, nullptr, argv, environ); if( rv != 0 ) { BUG(sp, "Error in posix_spawn - " << rv); -- cgit v1.2.3