Skip to content

[GNU Make Jobserver] Add newline when printing recipes when Make jobserver is active #2694

@carterols

Description

@carterols

When Ninja is invoked from Make, the stdout gets jumbled because Ninja recipes don't insert a newline at the end of a recipe.

When invoking ninja directly, I like the behavior of overwriting the current line with the current recipe, but when Ninja is subinvoked, I get output like:

[1/10] Building CXX Object test.c.....Compiling abc.c

Where the ..Compiling abc.c is output from a Make recipe.

Expected Behavior: When ninja is run and detects a make jobserver, it should append a newline to the status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions