You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was originally created at: 2007-12-28 14:33:56.
This issue was reported by: clementl.
clementl said at 2007-12-28 14:33:56
When generating dependencies for a project, some of the generated dependencies are erroneous. This was not a problem in version 0.97.0d20070809. An example pulled from a generated .vcproj:
As you can see, scons generated "C:\Program Files\Microsoft Visual Studio 8\VC\bin\lib.EXE" as a dependency, which is incorrect. I'm not quite sure how to fix it.
stevenknight said at 2007-12-28 17:53:13
The dependency on lib.exe is correct. That's the utility that's being used to generate the target, and if it changed, you would potentially need to rebuild to get an up-to-date target file.
The behavior was documented in the release notes (RELEASE.txt):
-- TARGETS NOW IMPLICITLY DEPEND ON THE COMMAND THAT BUILDS THEM
For all targets built by calling external commands (such as a
compiler or other utility), SCons now adds an implicit dependency
on the command(s) used to build the target.
This will cause rebuilds of all targets built by external commands
when running SCons in a tree built by previous version of SCons,
in order to update the recorded signatures.
The old behavior of not having targets depend on the external
commands that build them can be preserved by setting a new
$IMPLICIT_COMMAND_DEPENDENCIES construction variable to a
non-True value:
env = Environment(IMPLICIT_COMMAND_DEPENDENCIES = 0)
or by adding Ignore() calls for any targets where the behavior
is desired:
Ignore('/usr/bin/gcc', 'foo.o')
Both of these settings are compatible with older versions
of SCons.
The behavior was changed as of 0.97.0d020070809, so I'm surprised that you didn't apparently see it in that release. Nevertheless, if you don't want implicit dependencies on the commands, then set the construction variable as documented above and you should be fine.
The text was updated successfully, but these errors were encountered:
This issue was originally created at: 2007-12-28 14:33:56.
This issue was reported by:
clementl
.clementl said at 2007-12-28 14:33:56
stevenknight said at 2007-12-28 17:53:13
The text was updated successfully, but these errors were encountered: