mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Add support for Visual Studio 2015 and encoding issues
Replace 'touch' command with Python implementation to reduce dependency on cygwin.
This commit is contained in:
committed by
Robin Dunn
parent
964307cbb7
commit
abbf850d56
@@ -789,7 +789,7 @@ def runcmd(cmd, getOutput=False, echoCmd=True, fatal=True):
|
||||
if getOutput:
|
||||
output = sp.stdout.read()
|
||||
if sys.version_info > (3,):
|
||||
output = output.decode('utf-8') # TODO: is utf-8 okay here?
|
||||
output = output.decode('utf-8', 'ignore') # TODO: is utf-8 okay here?
|
||||
output = output.rstrip()
|
||||
|
||||
rval = sp.wait()
|
||||
@@ -850,6 +850,8 @@ def getVisCVersion():
|
||||
return '90'
|
||||
if 'Version 16' in text:
|
||||
return '100'
|
||||
if 'Version 19' in text:
|
||||
return '140'
|
||||
# TODO: Add more tests to get the other versions...
|
||||
else:
|
||||
return 'FIXME'
|
||||
|
||||
Reference in New Issue
Block a user