|
@@ -820,11 +820,6 @@ int main(int argc, char** argv)
|
|
|
return main_unit_tests();
|
|
return main_unit_tests();
|
|
|
}
|
|
}
|
|
|
#endif // CROWN_BUILD_UNIT_TESTS
|
|
#endif // CROWN_BUILD_UNIT_TESTS
|
|
|
- if (cl.has_option("compile") || cl.has_option("server"))
|
|
|
|
|
- {
|
|
|
|
|
- if (main_data_compiler(argc, argv) != EXIT_SUCCESS || !cl.has_option("continue"))
|
|
|
|
|
- return EXIT_FAILURE;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
InitMemoryGlobals m;
|
|
InitMemoryGlobals m;
|
|
|
CE_UNUSED(m);
|
|
CE_UNUSED(m);
|
|
@@ -833,7 +828,17 @@ int main(int argc, char** argv)
|
|
|
bool quit = false;
|
|
bool quit = false;
|
|
|
int ec = opts.parse(&quit);
|
|
int ec = opts.parse(&quit);
|
|
|
|
|
|
|
|
- if (ec == EXIT_SUCCESS && !quit)
|
|
|
|
|
|
|
+ if (quit)
|
|
|
|
|
+ return ec;
|
|
|
|
|
+
|
|
|
|
|
+ if (ec == EXIT_SUCCESS && (opts._do_compile || opts._server))
|
|
|
|
|
+ {
|
|
|
|
|
+ ec = main_data_compiler(opts);
|
|
|
|
|
+ if (!opts._do_continue)
|
|
|
|
|
+ return ec;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (ec == EXIT_SUCCESS)
|
|
|
ec = s_ldvc.run(&opts);
|
|
ec = s_ldvc.run(&opts);
|
|
|
|
|
|
|
|
return ec;
|
|
return ec;
|