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

juvix compile: --debug no longer implies -O0 by default #2726

Closed
lukaszcz opened this issue Apr 15, 2024 · 0 comments · Fixed by #2728
Closed

juvix compile: --debug no longer implies -O0 by default #2726

lukaszcz opened this issue Apr 15, 2024 · 0 comments · Fixed by #2728
Assignees
Milestone

Comments

@lukaszcz
Copy link
Collaborator

Expected (previous) behaviour: adding --debug without specifying the optimization level implied turning off optimizations. This could be overridden by specifying -O explicitly.

This is no longer the case (even though the command documentation suggests it).

For example

juvix compile native --debug program.juvix

should compile in debug mode without optimizations, i.e., it should be equivalent to

juvix compile native --debug -O0 program.juvix

The command

juvix compile native --debug -O2 program.juvix

should compile in debug mode with optimization level 2.

This can probably be fixed by modifying applyCompileCommonOptions appropriately.

@lukaszcz lukaszcz added this to the 0.6.2 milestone Apr 15, 2024
@janmasrovira janmasrovira self-assigned this Apr 16, 2024
@janmasrovira janmasrovira linked a pull request Apr 16, 2024 that will close this issue
paulcadman pushed a commit that referenced this issue Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants