[Python-checkins] cpython (3.5): Update default msvccompiler link options to match the options used for core

steve.dower python-checkins at python.org
Thu Jul 30 20:51:51 CEST 2015


https://hg.python.org/cpython/rev/401c65b0ae3f
changeset:   97148:401c65b0ae3f
branch:      3.5
parent:      97146:98631f35426f
user:        Steve Dower <steve.dower at microsoft.com>
date:        Thu Jul 30 11:51:06 2015 -0700
summary:
  Update default msvccompiler link options to match the options used for core builds.
This ensures that wheels will work when moved to machines that have the same subset of the MSVC libraries as a regular CPython install. Specifically, vcruntime##0.dll may not be installed, and should not be a dependency.

files:
  Lib/distutils/_msvccompiler.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/distutils/_msvccompiler.py b/Lib/distutils/_msvccompiler.py
--- a/Lib/distutils/_msvccompiler.py
+++ b/Lib/distutils/_msvccompiler.py
@@ -207,10 +207,10 @@
         ]
 
         self.ldflags_shared = [
-            '/nologo', '/DLL', '/INCREMENTAL:NO'
+            '/nologo', '/DLL', '/INCREMENTAL:NO', '/LTCG', '/nodefaultlib:libucrt.lib', 'ucrt.lib'
         ]
         self.ldflags_shared_debug = [
-            '/nologo', '/DLL', '/INCREMENTAL:no', '/DEBUG:FULL'
+            '/nologo', '/DLL', '/INCREMENTAL:no', '/LTCG', '/DEBUG:FULL', '/nodefaultlib:libucrtd.lib', 'ucrtd.lib'
         ]
         self.ldflags_static = [
             '/nologo'

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list