Skip to content

Unable to compile any code when using the --debugger:native option #77

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

Open
econsta opened this issue Apr 14, 2025 · 0 comments
Open

Unable to compile any code when using the --debugger:native option #77

econsta opened this issue Apr 14, 2025 · 0 comments

Comments

@econsta
Copy link

econsta commented Apr 14, 2025

I am trying out nlvm for the first time, and I would like to try using the debugger, but it seems unable to compile anything if the --debugger:native argument is passed. Is there something I could be doing wrong? I'm just testing it with a simple fibonacci function

proc fib(n: uint64): uint64 =
    if n <= 1: return n
    return fib(n - 1) + fib(n - 2)

echo fib(47)

compiling with:

nlvm c --debugger:native ./src/main.nim

I compiled nlvm from source without the STATIC_LLVM=1 argument

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

No branches or pull requests

1 participant