[Scons-users] Testing ninja build generator
Mats Wichmann
mats at wichmann.us
Fri Jun 6 12:43:20 EDT 2025
On 6/6/25 06:11, Mats Wichmann wrote:
> On 6/6/25 02:44, Julien Pommier wrote:
>> Hi,
>>
>> I’m trying the ninja build generator (on macOS, with SCons 4.9.1), and
>> have run so far into two small issues:
>>
>> - ninja build commands seem to be incorrectly generated for this type
>> of SCons command, with two chained sub-commands:
>>
>> target = env.Command("run.sh", “run.sh.txt", [ Copy("$TARGET",
>> "$SOURCE"), Chmod("$TARGET", 0o755) ])
>
> That's a List Action.
Okay, now I look at the failure - the action is a list action, but it's
not failing *because* it's a list action, it's failing because it didn't
construct the right rule for the *first* action string. The tool does
have a mapping of some of the special action functions (Copy included,
but not Chmod), but doesn't seem to be doing the right thing with that
information. So that example is broken on two levels... sigh.
More information about the Scons-users
mailing list