Skip to content

Commit e68d580

Browse files
committed
LPython changes for new libasr directory
1 parent d67bb05 commit e68d580

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

grammar/asdl_py.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
import os
77

8-
sys.path.append("src/libasr")
8+
sys.path.append("src/libasr/src/libasr")
99
import asdl
1010

1111
products = []

src/bin/lpython.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,9 +2261,9 @@ int main(int argc, char *argv[])
22612261
#else
22622262
cmd += "llvm-dwarfdump --debug-line " + basename + ".out > ";
22632263
#endif
2264-
cmd += basename + "_ldd.txt && (cd src/libasr/src/libasr; ./dwarf_convert.py ../../"
2265-
+ basename + "_ldd.txt ../../" + basename + "_lines.txt ../../"
2266-
+ basename + "_lines.dat && ./dat_convert.py ../../"
2264+
cmd += basename + "_ldd.txt && (cd src/libasr/src/libasr; ./dwarf_convert.py ../../../../"
2265+
+ basename + "_ldd.txt ../../../../" + basename + "_lines.txt ../../../../"
2266+
+ basename + "_lines.dat && ./dat_convert.py ../../../../"
22672267
+ basename + "_lines.dat)";
22682268
int status = system(cmd.c_str());
22692269
if ( status != 0 ) {

src/lpython/utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ std::string get_runtime_library_header_dir()
9494
|| endswith(dirname, "src\\bin")
9595
|| endswith(dirname, "SRC\\BIN")) {
9696
// Development version
97-
return dirname + "/../libasr/runtime";
97+
return dirname + "/../libasr/src/libasr/runtime";
9898
} else if (endswith(dirname, "src/lpython/tests") ||
9999
endswith(to_lower(dirname), "src\\lpython\\tests")) {
100100
// CTest Tests
101-
return dirname + "/../../libasr/runtime";
101+
return dirname + "/../../libasr/src/libasr/runtime";
102102
} else {
103103
// Installed version
104104
return dirname + "/../share/lpython/lib/impure";

0 commit comments

Comments
 (0)