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:
parent
4293b8e19a
commit
41f005082f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user