diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-18 17:33:44 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-18 17:47:12 +0800 |
commit | a5134d18945a823a5995f26ebc05359bc9f33b34 (patch) | |
tree | 3c0e04fab055fb31767b28175cfda9053be86389 /src/expand/proc_macro.cpp | |
parent | a2db789d465cd0306e1d87335ddb23c6021fab4e (diff) | |
download | mrust-a5134d18945a823a5995f26ebc05359bc9f33b34.tar.gz |
libproc_macro - Hacky debugging prints
Diffstat (limited to 'src/expand/proc_macro.cpp')
-rw-r--r-- | src/expand/proc_macro.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<char*>(executable), const_cast<char*>(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); |