aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 5850e66..0264c18 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -159,6 +159,9 @@ eval(CEnv& cenv, const string& name, istream& is, bool execute)
// Finish compilation
cenv.engine()->finishFunction(cenv, f, val);
+ if (cenv.args.find("-d") != cenv.args.end())
+ cenv.engine()->writeModule(cenv, cenv.out);
+
// Call and print ast
if (cenv.args.find("-S") == cenv.args.end())
callPrintCollect(cenv, f, ast, type, execute);