Skip to content
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

Fix running lc in sub directory #93

Merged
merged 5 commits into from
Feb 16, 2024

Conversation

Shaikh-Ubaid
Copy link
Collaborator

@Shaikh-Ubaid Shaikh-Ubaid commented Feb 16, 2024

fixes #32

main branch:

lc % cd examples 
examples % lc expr2.c 
ld: warning: directory not found for option '-Lsrc/bin/../runtime'
ld: library not found for -llc_runtime
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The command 'gcc -o expr2.out expr2.out__generated__.o  -L"src/bin/../runtime" -Wl,-rpath,"src/bin/../runtime" -llc_runtime -lm' failed.
examples % echo $?
10

PR branch:

lc % cd examples 
examples % lc expr2.c 
25

@Shaikh-Ubaid Shaikh-Ubaid marked this pull request as ready for review February 16, 2024 00:31
@Shaikh-Ubaid Shaikh-Ubaid requested a review from certik February 16, 2024 00:31
Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

Excellent, thanks for fixing it!

@certik certik merged commit 530e5e5 into lcompilers:main Feb 16, 2024
2 checks passed
@Shaikh-Ubaid Shaikh-Ubaid deleted the fix_run_in_subdir branch February 16, 2024 23:00
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.

"ld: library not found for -llc_runtime" when running in a subdirectory
2 participants