--debug=explain doesn't tell you everything that changed
This issue was originally created at: 2015-03-02 00:59:53.
This issue was reported by: thosrtanner.
thosrtanner said at 2015-03-02 00:59:53
Basically, if you run scons --debug==explain and both dependencies and build command has changed, you only get told about the dependencies. This seems an unnecessary suppression.
Could easily do this by taking the if len(line) == 0 out at around line 1241 (and it'd probably make sense to shove fmt_with_title into the subsequent if).
Such a change seems to work. On a simple testcase, I get:
scons: rebuilding `build/bugs.o' because:
`src/bugs.cpp' changed
the contents of the build action changed
action: $CXX -o $TARGET -c $CXXFLAGS $CCFLAGS $_CCCOMCOM $SOURCES
g++ -o build/bugs.o -c src/bugs.cpp
scons: done building targets.
In this example, the contents of CCFLAGS changed. I have other changes pending for explain, should I include this one?
Yes.