Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$rspfile in command is not evaluated properly #119

Open
hikerpig opened this issue Sep 2, 2024 · 1 comment
Open

$rspfile in command is not evaluated properly #119

hikerpig opened this issue Sep 2, 2024 · 1 comment

Comments

@hikerpig
Copy link

hikerpig commented Sep 2, 2024

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
@Colecf
Copy link
Contributor

Colecf commented Sep 9, 2024

We discussed this in #94, Evan was hesitant to add this behavior, and in my case, updating Android to not rely on it was simple enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants