mirror of
https://github.com/python/cpython.git
synced 2025-11-20 10:57:44 +00:00
Fix #13210. Port the Windows build from VS2008 to VS2010.
This commit is contained in:
parent
708d88c334
commit
401f9f3d32
131 changed files with 25738 additions and 192 deletions
|
|
@ -634,11 +634,12 @@ class MSVCCompiler(CCompiler) :
|
|||
mfid = 2
|
||||
self._remove_visual_c_ref(temp_manifest)
|
||||
out_arg = '-outputresource:%s;%s' % (output_filename, mfid)
|
||||
try:
|
||||
self.spawn(['mt.exe', '-nologo', '-manifest',
|
||||
temp_manifest, out_arg])
|
||||
except PackagingExecError as msg:
|
||||
raise LinkError(msg)
|
||||
if self.__version < 10:
|
||||
try:
|
||||
self.spawn(['mt.exe', '-nologo', '-manifest',
|
||||
temp_manifest, out_arg])
|
||||
except PackagingExecError as msg:
|
||||
raise LinkError(msg)
|
||||
else:
|
||||
logger.debug("skipping %s (up-to-date)", output_filename)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue