Skip to content

$rspfile in command is not evaluated properly #119

@hikerpig

Description

@hikerpig

For example, when I run n2 test and check rspoutput.txt.

Expected to see 'test.rsp' , this is what ninja test generates.

But actually with n2, I got an empty rspoutput.txt file.

build build.ninja.stamp: phony
  generator = 1
  depfile = build.ninja.d

rule echo_rsp
  rspfile = test.rsp
  rspfile_content = some texts
  command = echo $rspfile > rspoutput.txt

build test: echo_rsp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions