[Scons-users] Testing ninja build generator
Bill Deegan
bill at baddogconsulting.com
Fri Jun 6 14:26:28 EDT 2025
There is some generic filename escaping logic in scons which should likely
be used there.
env['ESCAPE'] should have the current platform's escaping function.
On Fri, Jun 6, 2025 at 9:55 AM Mats Wichmann <mats at wichmann.us> wrote:
> On 6/6/25 10:42, Julien Pommier wrote:
> >
> >
> >> 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.
> >
> > It seems the quoting need to be applied to the line 234 in
> ninja_scons_daemon.py. Using:
> >
> > input_command = "build \"" + building_node + "\"\n"
> >
> > instead of
> > input_command = "build " + building_node + "\n"
> >
> > makes it work for my test-case
>
> yeah, that looks good.
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20250606/69b37031/attachment.htm>
More information about the Scons-users
mailing list