Skip to content

[Demo] Having LibASR at src/libasr/src/libasr #2835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

ubaidsk
Copy link
Collaborator

@ubaidsk ubaidsk commented Mar 29, 2025

This PR does no LibASR sync. It does no submodule related work. It merely changes the src/libasr location to src/libasr/src/libasr which I believe would be the new location of libasr when submodule is added.

Update CMakeLists.txt
@@ -25,6 +25,8 @@


TESTER_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))
if "src/libasr/src/libasr" in TESTER_DIR:
TESTER_DIR = TESTER_DIR.replace("src/libasr", "", 1)
Copy link
Collaborator Author

@ubaidsk ubaidsk Mar 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems hackish and would get contributed to LFortran. Are we happy with this change going to LFortran?

(We can probably make this look more professional, for example using something like
subprocess.run("git rev-parse --show-toplevel" to get the project root directory and then updating the SRC, LIBASR_DIR, TESTER_DIR according to it).

@ubaidsk ubaidsk force-pushed the ubaid/test/libasr-src-libasr branch from e68d580 to 4af7bb1 Compare March 29, 2025 20:54
@ubaidsk
Copy link
Collaborator Author

ubaidsk commented Mar 31, 2025

The other PR #2836 has been merged. Hence closing this.

@ubaidsk ubaidsk closed this Mar 31, 2025
@ubaidsk ubaidsk deleted the ubaid/test/libasr-src-libasr branch March 31, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant