Skip to content

Commit e02a4e5

Browse files
swamishijucertik
authored andcommitted
REF: separate-compilation
1 parent d32a0b1 commit e02a4e5

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

src/bin/lpython.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ int main(int argc, char *argv[])
20762076
lpython_pass_manager.use_default_passes();
20772077
compiler_options.po.disable_main = true;
20782078
compiler_options.emit_debug_line_column = false;
2079-
compiler_options.generate_object_code = false;
2079+
compiler_options.separate_compilation = false;
20802080
return interactive_python_repl(lpython_pass_manager, compiler_options, arg_v);
20812081
#else
20822082
std::cerr << "Interactive prompt requires the LLVM backend to be enabled. Recompile with `WITH_LLVM=yes`." << std::endl;
@@ -2216,7 +2216,7 @@ int main(int argc, char *argv[])
22162216
}
22172217
compiler_options.emit_debug_info = false;
22182218
compiler_options.emit_debug_line_column = false;
2219-
compiler_options.generate_object_code = false;
2219+
compiler_options.separate_compilation = false;
22202220
return compile_python_using_llvm(arg_file, "", runtime_library_dir,
22212221
lpython_pass_manager, compiler_options, time_report, false, true);
22222222
#else

src/lpython/tests/test_llvm.cpp

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ TEST_CASE("PythonCompiler 1") {
613613
CompilerOptions cu;
614614
cu.po.disable_main = true;
615615
cu.emit_debug_line_column = false;
616-
cu.generate_object_code = false;
616+
cu.separate_compilation = false;
617617
cu.interactive = true;
618618
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
619619
PythonCompiler e(cu);
@@ -628,7 +628,7 @@ TEST_CASE("PythonCompiler 1") {
628628
// CompilerOptions cu;
629629
// cu.po.disable_main = true;
630630
// cu.emit_debug_line_column = false;
631-
// cu.generate_object_code = false;
631+
// cu.separate_compilation = false;
632632
// cu.interactive = true;
633633
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
634634
// PythonCompiler e(cu);
@@ -647,7 +647,7 @@ TEST_CASE("PythonCompiler i32 expressions") {
647647
CompilerOptions cu;
648648
cu.po.disable_main = true;
649649
cu.emit_debug_line_column = false;
650-
cu.generate_object_code = false;
650+
cu.separate_compilation = false;
651651
cu.interactive = true;
652652
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
653653
PythonCompiler e(cu);
@@ -693,7 +693,7 @@ TEST_CASE("PythonCompiler i32 expressions") {
693693
// CompilerOptions cu;
694694
// cu.po.disable_main = true;
695695
// cu.emit_debug_line_column = false;
696-
// cu.generate_object_code = false;
696+
// cu.separate_compilation = false;
697697
// cu.interactive = true;
698698
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
699699
// PythonCompiler e(cu);
@@ -728,7 +728,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
728728
CompilerOptions cu;
729729
cu.po.disable_main = true;
730730
cu.emit_debug_line_column = false;
731-
cu.generate_object_code = false;
731+
cu.separate_compilation = false;
732732
cu.interactive = true;
733733
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
734734
PythonCompiler e(cu);
@@ -774,7 +774,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
774774
// CompilerOptions cu;
775775
// cu.po.disable_main = true;
776776
// cu.emit_debug_line_column = false;
777-
// cu.generate_object_code = false;
777+
// cu.separate_compilation = false;
778778
// cu.interactive = true;
779779
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
780780
// PythonCompiler e(cu);
@@ -809,7 +809,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
809809
// CompilerOptions cu;
810810
// cu.po.disable_main = true;
811811
// cu.emit_debug_line_column = false;
812-
// cu.generate_object_code = false;
812+
// cu.separate_compilation = false;
813813
// cu.interactive = true;
814814
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
815815
// PythonCompiler e(cu);
@@ -855,7 +855,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
855855
// CompilerOptions cu;
856856
// cu.po.disable_main = true;
857857
// cu.emit_debug_line_column = false;
858-
// cu.generate_object_code = false;
858+
// cu.separate_compilation = false;
859859
// cu.interactive = true;
860860
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
861861
// PythonCompiler e(cu);
@@ -891,7 +891,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
891891
// CompilerOptions cu;
892892
// cu.po.disable_main = true;
893893
// cu.emit_debug_line_column = false;
894-
// cu.generate_object_code = false;
894+
// cu.separate_compilation = false;
895895
// cu.interactive = true;
896896
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
897897
// PythonCompiler e(cu);
@@ -937,7 +937,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
937937
// CompilerOptions cu;
938938
// cu.po.disable_main = true;
939939
// cu.emit_debug_line_column = false;
940-
// cu.generate_object_code = false;
940+
// cu.separate_compilation = false;
941941
// cu.interactive = true;
942942
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
943943
// PythonCompiler e(cu);
@@ -972,7 +972,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
972972
// CompilerOptions cu;
973973
// cu.po.disable_main = true;
974974
// cu.emit_debug_line_column = false;
975-
// cu.generate_object_code = false;
975+
// cu.separate_compilation = false;
976976
// cu.interactive = true;
977977
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
978978
// PythonCompiler e(cu);
@@ -1018,7 +1018,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
10181018
// CompilerOptions cu;
10191019
// cu.po.disable_main = true;
10201020
// cu.emit_debug_line_column = false;
1021-
// cu.generate_object_code = false;
1021+
// cu.separate_compilation = false;
10221022
// cu.interactive = true;
10231023
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
10241024
// PythonCompiler e(cu);
@@ -1053,7 +1053,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
10531053
// CompilerOptions cu;
10541054
// cu.po.disable_main = true;
10551055
// cu.emit_debug_line_column = false;
1056-
// cu.generate_object_code = false;
1056+
// cu.separate_compilation = false;
10571057
// cu.interactive = true;
10581058
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
10591059
// PythonCompiler e(cu);
@@ -1099,7 +1099,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
10991099
// CompilerOptions cu;
11001100
// cu.po.disable_main = true;
11011101
// cu.emit_debug_line_column = false;
1102-
// cu.generate_object_code = false;
1102+
// cu.separate_compilation = false;
11031103
// cu.interactive = true;
11041104
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
11051105
// PythonCompiler e(cu);
@@ -1134,7 +1134,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
11341134
// CompilerOptions cu;
11351135
// cu.po.disable_main = true;
11361136
// cu.emit_debug_line_column = false;
1137-
// cu.generate_object_code = false;
1137+
// cu.separate_compilation = false;
11381138
// cu.interactive = true;
11391139
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
11401140
// PythonCompiler e(cu);
@@ -1180,7 +1180,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
11801180
// CompilerOptions cu;
11811181
// cu.po.disable_main = true;
11821182
// cu.emit_debug_line_column = false;
1183-
// cu.generate_object_code = false;
1183+
// cu.separate_compilation = false;
11841184
// cu.interactive = true;
11851185
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
11861186
// PythonCompiler e(cu);
@@ -1215,7 +1215,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
12151215
// CompilerOptions cu;
12161216
// cu.po.disable_main = true;
12171217
// cu.emit_debug_line_column = false;
1218-
// cu.generate_object_code = false;
1218+
// cu.separate_compilation = false;
12191219
// cu.interactive = true;
12201220
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
12211221
// PythonCompiler e(cu);
@@ -1261,7 +1261,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
12611261
// CompilerOptions cu;
12621262
// cu.po.disable_main = true;
12631263
// cu.emit_debug_line_column = false;
1264-
// cu.generate_object_code = false;
1264+
// cu.separate_compilation = false;
12651265
// cu.interactive = true;
12661266
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
12671267
// PythonCompiler e(cu);
@@ -1296,7 +1296,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
12961296
// CompilerOptions cu;
12971297
// cu.po.disable_main = true;
12981298
// cu.emit_debug_line_column = false;
1299-
// cu.generate_object_code = false;
1299+
// cu.separate_compilation = false;
13001300
// cu.interactive = true;
13011301
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
13021302
// PythonCompiler e(cu);
@@ -1327,7 +1327,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
13271327
// CompilerOptions cu;
13281328
// cu.po.disable_main = true;
13291329
// cu.emit_debug_line_column = false;
1330-
// cu.generate_object_code = false;
1330+
// cu.separate_compilation = false;
13311331
// cu.interactive = true;
13321332
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
13331333
// PythonCompiler e(cu);
@@ -1367,7 +1367,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
13671367
// CompilerOptions cu;
13681368
// cu.po.disable_main = true;
13691369
// cu.emit_debug_line_column = false;
1370-
// cu.generate_object_code = false;
1370+
// cu.separate_compilation = false;
13711371
// cu.interactive = true;
13721372
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
13731373
// PythonCompiler e(cu);
@@ -1388,7 +1388,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
13881388
// CompilerOptions cu;
13891389
// cu.po.disable_main = true;
13901390
// cu.emit_debug_line_column = false;
1391-
// cu.generate_object_code = false;
1391+
// cu.separate_compilation = false;
13921392
// cu.interactive = true;
13931393
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
13941394
// PythonCompiler e(cu);
@@ -1422,7 +1422,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
14221422
// CompilerOptions cu;
14231423
// cu.po.disable_main = true;
14241424
// cu.emit_debug_line_column = false;
1425-
// cu.generate_object_code = false;
1425+
// cu.separate_compilation = false;
14261426
// cu.interactive = true;
14271427
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
14281428
// PythonCompiler e(cu);
@@ -1454,7 +1454,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
14541454
// CompilerOptions cu;
14551455
// cu.po.disable_main = true;
14561456
// cu.emit_debug_line_column = false;
1457-
// cu.generate_object_code = false;
1457+
// cu.separate_compilation = false;
14581458
// cu.interactive = true;
14591459
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
14601460
// PythonCompiler e(cu);
@@ -1471,7 +1471,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
14711471
// CompilerOptions cu;
14721472
// cu.po.disable_main = true;
14731473
// cu.emit_debug_line_column = false;
1474-
// cu.generate_object_code = false;
1474+
// cu.separate_compilation = false;
14751475
// cu.interactive = true;
14761476
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
14771477
// PythonCompiler e(cu);
@@ -1510,7 +1510,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
15101510
// CompilerOptions cu;
15111511
// cu.po.disable_main = true;
15121512
// cu.emit_debug_line_column = false;
1513-
// cu.generate_object_code = false;
1513+
// cu.separate_compilation = false;
15141514
// cu.interactive = true;
15151515
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
15161516
// PythonCompiler e(cu);
@@ -1557,7 +1557,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
15571557
// CompilerOptions cu;
15581558
// cu.po.disable_main = true;
15591559
// cu.emit_debug_line_column = false;
1560-
// cu.generate_object_code = false;
1560+
// cu.separate_compilation = false;
15611561
// cu.interactive = true;
15621562
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
15631563
// PythonCompiler e(cu);
@@ -1664,7 +1664,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
16641664
// CompilerOptions cu;
16651665
// cu.po.disable_main = true;
16661666
// cu.emit_debug_line_column = false;
1667-
// cu.generate_object_code = false;
1667+
// cu.separate_compilation = false;
16681668
// cu.interactive = true;
16691669
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
16701670
// PythonCompiler e(cu);
@@ -1695,7 +1695,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
16951695
// CompilerOptions cu;
16961696
// cu.po.disable_main = true;
16971697
// cu.emit_debug_line_column = false;
1698-
// cu.generate_object_code = false;
1698+
// cu.separate_compilation = false;
16991699
// cu.interactive = true;
17001700
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
17011701
// PythonCompiler e(cu);
@@ -1744,7 +1744,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
17441744
// CompilerOptions cu;
17451745
// cu.po.disable_main = true;
17461746
// cu.emit_debug_line_column = false;
1747-
// cu.generate_object_code = false;
1747+
// cu.separate_compilation = false;
17481748
// cu.interactive = true;
17491749
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
17501750
// PythonCompiler e(cu);
@@ -1777,7 +1777,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
17771777
// CompilerOptions cu;
17781778
// cu.po.disable_main = true;
17791779
// cu.emit_debug_line_column = false;
1780-
// cu.generate_object_code = false;
1780+
// cu.separate_compilation = false;
17811781
// cu.interactive = true;
17821782
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
17831783
// PythonCompiler e(cu);
@@ -1810,7 +1810,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
18101810
// CompilerOptions cu;
18111811
// cu.po.disable_main = true;
18121812
// cu.emit_debug_line_column = false;
1813-
// cu.generate_object_code = false;
1813+
// cu.separate_compilation = false;
18141814
// cu.interactive = true;
18151815
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
18161816
// PythonCompiler e(cu);
@@ -1829,7 +1829,7 @@ TEST_CASE("PythonCompiler i64 expressions") {
18291829
// CompilerOptions cu;
18301830
// cu.po.disable_main = true;
18311831
// cu.emit_debug_line_column = false;
1832-
// cu.generate_object_code = false;
1832+
// cu.separate_compilation = false;
18331833
// cu.interactive = true;
18341834
// cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
18351835
// PythonCompiler e(cu);
@@ -1856,7 +1856,7 @@ TEST_CASE("PythonCompiler asr verify 3") {
18561856
CompilerOptions cu;
18571857
cu.po.disable_main = true;
18581858
cu.emit_debug_line_column = false;
1859-
cu.generate_object_code = false;
1859+
cu.separate_compilation = false;
18601860
cu.interactive = true;
18611861
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
18621862
PythonCompiler e(cu);
@@ -1888,7 +1888,7 @@ TEST_CASE("PythonCompiler asr verify 4") {
18881888
CompilerOptions cu;
18891889
cu.po.disable_main = true;
18901890
cu.emit_debug_line_column = false;
1891-
cu.generate_object_code = false;
1891+
cu.separate_compilation = false;
18921892
cu.interactive = true;
18931893
cu.po.runtime_library_dir = LCompilers::LPython::get_runtime_library_dir();
18941894
PythonCompiler e(cu);

0 commit comments

Comments
 (0)