[PATCH v1 2/2] wscript: Allow substitution outside values

Kinsey Moore kinsey.moore at oarcorp.com
Wed Apr 13 18:07:58 UTC 2022


On 4/13/2022 00:48, Sebastian Huber wrote:
> On 12/04/2022 20:55, Kinsey Moore wrote:
>> diff --git a/wscript b/wscript
>> index 9de9d67b91..e2fc047ea8 100755
>> --- a/wscript
>> +++ b/wscript
>> @@ -276,10 +276,10 @@ class Item(object):
>>           if target is None:
>>               target = os.path.splitext(source)[0] + ".o"
>>           bld(
>> -            asflags=self.data["asflags"],
>> -            cppflags=self.data["cppflags"],
>> +            asflags=[self.substitute(bld, asflag) for asflag in 
>> self.data["asflags"]],
>> +            cppflags=[self.substitute(bld, cppflag) for cppflag in 
>> self.data["cppflags"]],
>
> Could you please add a self.substitute_list(bld, values) or add list 
> support to self.substitute(bld, value).
>
I'll incorporate this into the next version of the patch set.


Thanks,

Kinsey



More information about the devel mailing list