Skip to content

-nodraftCompile enables -Xnamespace PACKAGE by mistake #10163

@niloc132

Description

@niloc132

Boolean flags come with the option of prefixing them with no to do their opposite, but the -draftCompile flag doesn't consider the boolean value when controlling the namespace handling.

Steps to reproduce:
Compare the compiled output of a "production" build, with and without -nodraftCompile. Add the flag as early as possible, so that other args can override any defaults it happens to set (e.g. if a different optimization level is desired, etc).

Expected:
The two sets of compiled output are nearly or exactly the same

Actual:
The "nodraftCompile" output is larger than the other (real world example, 1.8MB without the flag, 2.1MB with the flag, more than 15% bigger than it should be).

Workaround:
Explicitly assign the -Xnamespace command line arg to NONE - this restores it to the expected value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions