2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-16 06:57:21 +01:00

Let msvc.py display encoding errors in the config.log file

This commit is contained in:
Thomas Nagy 2015-12-09 00:14:17 +01:00
parent 4293b8e19a
commit 41f005082f
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -195,11 +195,13 @@ echo LIB=%%LIB%%;%%LIBPATH%%
try:
conf.cmd_and_log(cxx + ['/help'], env=env)
except UnicodeError:
raise
st = Utils.ex_stack()
if conf.logger:
conf.logger.error(st)
conf.fatal('msvc: Unicode error - check the code page?')
except Exception as e:
debug('msvc: get_msvc_version: %r %r %r -> failure' % (compiler, version, target))
debug(str(e))
conf.fatal('msvc: cannot run the compiler (in get_msvc_version)')
debug('msvc: get_msvc_version: %r %r %r -> failure %s' % (compiler, version, target, str(e)))
conf.fatal('msvc: cannot run the compiler in get_msvc_version (run with -v to display errors)')
else:
debug('msvc: get_msvc_version: %r %r %r -> OK', compiler, version, target)
finally: