File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1293,10 +1293,6 @@ int main(int argc, char *argv[])
1293
1293
app.add_flag (" --show-errors" , show_errors, " Show errors when LSP is running in the background" );
1294
1294
app.add_flag (" --show-document-symbols" , show_document_symbols, " Show symbols in lpython file" );
1295
1295
1296
- if ( compiler_options.fast ) {
1297
- lpython_pass_manager.use_optimization_passes ();
1298
- }
1299
-
1300
1296
/*
1301
1297
* Subcommands:
1302
1298
*/
@@ -1329,6 +1325,16 @@ int main(int argc, char *argv[])
1329
1325
app.require_subcommand (0 , 1 );
1330
1326
CLI11_PARSE (app, argc, argv);
1331
1327
1328
+ if ( compiler_options.fast && compiler_options.enable_bounds_checking ) {
1329
+ // ReleaseSafe Mode
1330
+ } else if ( compiler_options.fast ) {
1331
+ // Release Mode
1332
+ lpython_pass_manager.use_optimization_passes ();
1333
+ } else {
1334
+ // Debug Mode
1335
+ compiler_options.enable_bounds_checking = true ;
1336
+ }
1337
+
1332
1338
if (arg_version) {
1333
1339
std::string version = LFORTRAN_VERSION;
1334
1340
std::cout << " LPython version: " << version << std::endl;
You can’t perform that action at this time.
0 commit comments