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

disable code optimization in debug builds #1697

Closed
1ndahous3 opened this issue Aug 8, 2023 · 2 comments
Closed

disable code optimization in debug builds #1697

1ndahous3 opened this issue Aug 8, 2023 · 2 comments

Comments

@1ndahous3
Copy link
Contributor

1ndahous3 commented Aug 8, 2023

For correct line-by-line debugging, binaries must be compiled without optimization.

At the moment I can't find the configuration option, so I just locally replace all -O2 with -O0 in configure.ac and libvmi/configure.ac.

@tklengyel
Copy link
Owner

The recommended build system is meson+ninja, that should set the proper optimization flags if you are making a debug build.

@Prateek-SecurityAnalyst
Copy link

@tklengyel Sir please resolve my query.
#1694
Regards,

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

3 participants