about summary refs log tree commit diff stats
path: root/020run.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-10 16:53:21 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-11-10 16:53:21 -0800
commitc4e7c10d158fafb2289b2349a2aebe0459b8946f (patch)
treeb674bd91a73ead057531b986796d97a5d1da030d /020run.cc
parentd07aff341dbeb45188683848609a6c7e5d309aa2 (diff)
downloadmu-c4e7c10d158fafb2289b2349a2aebe0459b8946f.tar.gz
2416
Diffstat (limited to '020run.cc')
-rw-r--r--020run.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/020run.cc b/020run.cc
index a1f0ad01..687dab2a 100644
--- a/020run.cc
+++ b/020run.cc
@@ -161,7 +161,7 @@ if (argc > 1) {
 //: Step 3: if we aren't running tests, locate a recipe called 'main' and
 //: start running it.
 :(before "End Main")
-if (!Run_tests) {
+if (!Run_tests && contains_key(Recipe_ordinal, string("main")) && contains_key(Recipe, get(Recipe_ordinal, string("main")))) {
   setup();
 //?   Trace_file = "interactive";
 //?   START_TRACING_UNTIL_END_OF_SCOPE;