**JUNK** Value/Alias Nodes default to up-to-date
Brad Kraemer <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <DS7PR10MB505564AEEBC6FDE20FF9A7A5F7489@DS7PR10MB5055.namprd10.prod.outlook.com> |
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
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users