diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-11-28 15:33:57 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-11-28 15:33:57 (GMT) |
commit | 1c19e9f962b8cab0f9086615bb6409f8a326c0b8 (patch) | |
tree | bd90433d4c95bc1bacd8458326384a6f791e3e9b | |
parent | 5aee586223f47d5cd4d14e66a92d44779d12e8aa (diff) | |
download | SCons-1c19e9f962b8cab0f9086615bb6409f8a326c0b8.zip SCons-1c19e9f962b8cab0f9086615bb6409f8a326c0b8.tar.gz SCons-1c19e9f962b8cab0f9086615bb6409f8a326c0b8.tar.bz2 |
Add better error messaging when missing (or surplus) shared library targets with file extension
-rw-r--r-- | src/engine/SCons/Tool/mingw.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/mingw.py b/src/engine/SCons/Tool/mingw.py index 948ebe5..778db3c 100644 --- a/src/engine/SCons/Tool/mingw.py +++ b/src/engine/SCons/Tool/mingw.py @@ -86,7 +86,8 @@ def shlib_emitter(target, source, env): no_import_lib = env.get('no_import_lib', 0) if not dll: - raise SCons.Errors.UserError("A shared library should have exactly one target with the suffix: %s" % env.subst("$SHLIBSUFFIX")) + raise SCons.Errors.UserError("A shared library should have exactly one target with the suffix: %s Target(s) are:%s" % \ + (env.subst("$SHLIBSUFFIX"), ",".join([str(t) for t in target]))) if not no_import_lib and \ not env.FindIxes(target, 'LIBPREFIX', 'LIBSUFFIX'): |