[Scons-users] **JUNK** Value/Alias Nodes default to up-to-date
Bill Deegan
bill at baddogconsulting.com
Sun Jan 2 17:20:47 EST 2022
also why **JUNK** in subject?
On Sun, Jan 2, 2022 at 2:20 PM Bill Deegan <bill at baddogconsulting.com>
wrote:
> What output do you see when you run your example?
>
>
> On Sun, Jan 2, 2022 at 7:56 AM Brad Kraemer <computerpro_58 at hotmail.com>
> wrote:
>
>> Hello,
>>
>> I filed a GitHub Issue <https://github.com/SCons/scons/issues/4079> and
>> got bounced to this mailing list. So here we go again:
>>
>> Value/Alias nodes (as created by the Alias() and Value()
>> functions/methods receptively) default to up-to-date.
>>
>> SCons 4.1.0
>>
>> Python 3.9
>>
>> Installed from nixpkgs (NixOS, $ nix-env -iA nixos.scons)
>>
>> Linux
>>
>> Reproduction (SConstruct):
>>
>> def print_target_1(target, source, env):
>> print("Target 1 built")
>>
>> def print_alias_1(target, source, env):
>> print("[I'm not getting called]")
>>
>> def print_alias_2(target, source, env):
>> print("I'm getting called because of AlwaysBuild() workaround")
>>
>> t1 = Command("t1", [], Action(print_target_1, cmdstr=None))
>> Default(t1)
>>
>> v = Value("_")
>> a1 = Alias("a1", v, Action(print_alias_1, cmdstr=None))
>> a2 = Alias("a2", v, Action(print_alias_2, cmdstr=None))
>> Depends(t1, a1)
>> Depends(t1, a2)
>>
>> AlwaysBuild(a2)
>>
>>
>> Invoke via executing '$ scons' from the directory where the above
>> SConstruct file exists.
>>
>>
>> Thanks,
>>
>> simplejack-src
>>
>>
>> _______________________________________________
>> 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/20220102/cdedcbd5/attachment.htm>
More information about the Scons-users
mailing list