summaryrefslogtreecommitdiff
path: root/src/expand/proc_macro.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-11-18 17:33:44 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-11-18 17:47:12 +0800
commita5134d18945a823a5995f26ebc05359bc9f33b34 (patch)
tree3c0e04fab055fb31767b28175cfda9053be86389 /src/expand/proc_macro.cpp
parenta2db789d465cd0306e1d87335ddb23c6021fab4e (diff)
downloadmrust-a5134d18945a823a5995f26ebc05359bc9f33b34.tar.gz
libproc_macro - Hacky debugging prints
Diffstat (limited to 'src/expand/proc_macro.cpp')
-rw-r--r--src/expand/proc_macro.cpp4
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);