Skip to content

[SR-9735] Ninja build to nonexistent subdirectories fails #783

Open
@swift-ci

Description

@swift-ci
Previous ID SR-9735
Radar None
Original Reporter ePirat (JIRA User)
Type Bug
Environment

llbuild git (b8f6f85)

Additional Detail from JIRA
Votes 0
Component/s llbuild
Labels Bug
Assignee None
Priority Medium

md5: 08bc34cc7672d45d30d1b2d3ca8325d3

Issue Description:

Trying to build a ninja manifest that declares an output file to a nonexistent subdirectory, the ninja implementation of llbuild fails to create the subdirectories, which results in build failure.

This does not match the upstream ninja behavior.

A minimal ninja file to reproduce this:

rule CAT
     command = cat ${in} > ${out}build

subdir/output: CAT input

This build file requires a file named `input` to exist in the directory where this is run.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions