Skip to content

Commit 6d9432b

Browse files
Apply suggestions from code review
Co-authored-by: Shaikh Ubaid <[email protected]>
1 parent 5ae201e commit 6d9432b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bin/lpython.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,9 +1961,10 @@ int main(int argc, char *argv[])
19611961
int err = 0;
19621962
if (to_jit) {
19631963
#ifdef HAVE_LFORTRAN_LLVM
1964-
if (backend != Backend::llvm)
1964+
if (backend != Backend::llvm) {
19651965
std::cerr << "JIT option is only available with LLVM backend" << std::endl;
1966-
1966+
return 1;
1967+
}
19671968
compiler_options.emit_debug_info = false;
19681969
compiler_options.emit_debug_line_column = false;
19691970
compiler_options.generate_object_code = false;
@@ -1972,6 +1973,7 @@ int main(int argc, char *argv[])
19721973
#else
19731974
std::cerr << "Just-In-Time Compilation of Python files requires the LLVM backend to be enabled."
19741975
" Recompile with `WITH_LLVM=yes`." << std::endl;
1976+
return 1;
19751977
#endif
19761978
}
19771979
if (backend == Backend::x86) {

0 commit comments

Comments
 (0)