diff options
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/eval/src/eval.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/eval/src/eval.rs b/tvix/eval/src/eval.rs index 5e6c53cd8bf5..a12add48b552 100644 --- a/tvix/eval/src/eval.rs +++ b/tvix/eval/src/eval.rs @@ -10,7 +10,9 @@ pub fn interpret(code: &str) -> EvalResult<Value> { todo!() } - println!("{}", ast.root().dump()); + if let Ok(_) = std::env::var("TVIX_DISPLAY_AST") { + println!("{}", ast.root().dump()); + } let code = crate::compiler::compile(ast)?; println!("code: {:?}", code); |