Skip to content

configure --enable-debug --enable-optimize is not enabling optimizations #24405

Description

@pnkfelix

Running configure --enable-debug --enable-optimize is not enabling optimizations.

Concretely, running ../configure --enable-debug --enable-optimize yields:

CFG_ENABLE_DEBUG     := 1
...
CFG_DISABLE_OPTIMIZE := 1
CFG_DISABLE_OPTIMIZE_CXX := 1
...
CFG_CONFIGURE_ARGS   := --enable-debug --enable-optimize

And, just out of curiosity, I tried switching the order of args; that made little difference:

CFG_ENABLE_DEBUG     := 1
...
CFG_DISABLE_OPTIMIZE := 1
CFG_DISABLE_OPTIMIZE_CXX := 1
...
CFG_CONFIGURE_ARGS   := --enable-optimize --enable-debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions