Re: Testing ninja build generator
Mats Wichmann <[email protected]> Fri, 6 Jun 2025 09:35:47 -0600
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <[email protected]> |
On 6/6/25 07:53, Julien Pommier wrote:
> # issue 2 : Whitespace in target failed with ninja builder
> runner2 = env.Textfile("run me.sh", "COUCOUCOU");
There's another layer of "quoting problem" here, beyond the URL-quoting
that I'm trying to understand.
As written, the rule in build.ninja looks like:
build run$ me.sh: TEMPLATE | .ninja/scons_daemon_dirty
I'm assuming the '$' is some kind of space-escape syntax for ninja. This
fails with
scons: *** Do not know how to make File target `run'
so we ended up seeing the target back in SCons as being just "run".
Adding a layer of quotes doesn't work, as those are carefully preserved
and the target names don't match.
Not familiar with this code beyond the fiddling I did in Utils.py,
hopefully someone else has some ideas, else we'll have to dig into it.