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

No debug symbols in debug build #12

Open
SolraBizna opened this issue Jan 13, 2021 · 0 comments
Open

No debug symbols in debug build #12

SolraBizna opened this issue Jan 13, 2021 · 0 comments

Comments

@SolraBizna
Copy link

build.rs contains this snippet:

            if is_debug_mode() && opt_level_eq(0) {
                configure_flags.push("--disable-optimizations");
                configure_flags.push("--disable-debug");
                configure_flags.push("--disable-stripping");
            }

This causes debug builds to explicitly request that debugging symbols not be built.

Maybe something like:

            if is_debug_mode() && opt_level_eq(0) {
                configure_flags.push("--disable-optimizations");
                configure_flags.push("--disable-stripping");
                configure_flags.push("--enable-debug");
            }
            else {
                configure_flags.push("--disable-debug");
            }

would be better.

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