diff options
author | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-07 07:34:25 (GMT) |
---|---|---|
committer | Pawel Tomulik <ptomulik@meil.pw.edu.pl> | 2015-09-07 07:34:25 (GMT) |
commit | 2a1a18d6c6a311f28eca6b97372475a09732bad0 (patch) | |
tree | 28aa91a2ee87c65358d510a1d12deb3d83bd7b8c /src | |
parent | cf4df802f7c81e2eb07628850165ad1e2269334a (diff) | |
download | SCons-2a1a18d6c6a311f28eca6b97372475a09732bad0.zip SCons-2a1a18d6c6a311f28eca6b97372475a09732bad0.tar.gz SCons-2a1a18d6c6a311f28eca6b97372475a09732bad0.tar.bz2 |
minor correction to debug code in Tool/__init__.py
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/Tool/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index d1f41ec..87a4cf4 100644 --- a/src/engine/SCons/Tool/__init__.py +++ b/src/engine/SCons/Tool/__init__.py @@ -253,14 +253,16 @@ def _call_linker_cb(env, callback, args, result = None): try: cbfun = env['LINKCALLBACKS'][callback] except (KeyError, TypeError): + if Verbose: + print '_call_linker_cb: env["LINKCALLBACKS"][%r] not found or can not be used' pass else: if Verbose: - print '_call_linker_cb: env[%r] found' % callback - print '_call_linker_cb: env[%r]=%r' % (callback, cbfun) + print '_call_linker_cb: env["LINKCALLBACKS"][%r] found' % callback + print '_call_linker_cb: env["LINKCALLBACKS"][%r]=%r' % (callback, cbfun) if(callable(cbfun)): if Verbose: - print '_call_linker_cb: env[%r] is callable' % callback + print '_call_linker_cb: env["LINKCALLBACKS"][%r] is callable' % callback result = cbfun(env, *args) return result |