Skip to content

Implicit Command Dependencies #698

Closed

Description

@bdbaddog

This issue was originally created at: 2003-11-23 10:59:25.
This issue was reported by: wiedeman.
wiedeman said at 2003-11-23 10:59:25

This patch makes built nodes implicitely dependent on the commands
they're built with.

There are several limitations:

  1. If some commands are masqueraded (e.g. with distcc), the
    dependencies may not be correct.

  2. Commands of the form 'cd $DIR && doSomething' will add
    dependencies to 'cd' and not to 'doSomething'.

stevenknight said at 2004-12-02 13:26:10

STATUS:
Needs discussion: YES (will cause
recompilation on upgrade)
Needs additional work: NO
Needs unit tests: NO
Needs end-to-end test(s): NO
Needs man page update: YES
Needs User's Guide update: YES?

Adds a dependency on the executed command, so if
it changes, the target will get rebuilt. To be
honest, I'm kicking myself that this wasn't part
of the code from day one; Cons classic works this
way, for example. I think I got a little spooked
by Christoph's description of the limitations,
but this actually looks like it's in good shape;
I've updated it so it's ready to go. It will
need a release note (it will cause recompilation
after upgrade to the next release) and mention
somewhere in the documentation.

issues@scons said at 2004-12-02 13:26:10

Converted from SourceForge tracker item 847782

stevenknight said at 2006-05-26 03:55:26

Created an attachment (id=9)
Patch file copied over from SourceForge.

stevenknight said at 2007-09-11 07:53:22

This has (finally!) been folded into the code base along with the Big Signature
Refactoring (since that will make most people rebuild everything anyway).

http://scons.tigris.org/servlets/ReadMsg?list=dev&msgNo=4157
http://scons.tigris.org/servlets/ReadMsg?list=commits&msgNo=929

Also, a $IMPLICIT_COMMAND_DEPENDENCIES variable was added to control the behavior:

http://scons.tigris.org/servlets/ReadMsg?list=dev&msgNo=4162
http://scons.tigris.org/servlets/ReadMsg?list=commits&msgNo=933

Thanks,

stevenknight attached cmd-deps.patch at 2008-03-25 11:08:15.

Patch file copied over from SourceForge.

stevenknight said this issue blocks #1664 at 2007-09-11 07:53:22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions