Skip to content

Ninja backend behaviour for build command working diretory #2714

Description

@fsfod

I noticed generated cmds for buildcommands emitted by the ninja backend don't implicitly have the working directory set to the the directory of ninja file there run from. I think you implicitly get this for free in gmake and visual studio backends. I have workspace ninja\solution file one directory lower than the project ones so plain paths in my build commands fail with the Ninja backend, while work for gmake and vs2026,
Should ninja backend be fixed or is default working directory not something to rely on and just convert all the paths to use tokens?

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