summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-07-30 18:51:06 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-07-30 18:51:06 (GMT)
commitb465cb50de6e11ce2399cb8c1f2811054ce135c8 (patch)
tree5f5f12295bbc14bde25520945898f1c7fa6ed55a /Lib/distutils
parent7e94e8ea4bb14e25eecd76c9d34e97cb417f1718 (diff)
downloadcpython-b465cb50de6e11ce2399cb8c1f2811054ce135c8.zip
cpython-b465cb50de6e11ce2399cb8c1f2811054ce135c8.tar.gz
cpython-b465cb50de6e11ce2399cb8c1f2811054ce135c8.tar.bz2
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.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/_msvccompiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/_msvccompiler.py b/Lib/distutils/_msvccompiler.py
index 896d9d9..4e2eed7 100644
--- a/Lib/distutils/_msvccompiler.py
+++ b/Lib/distutils/_msvccompiler.py
@@ -207,10 +207,10 @@ class MSVCCompiler(CCompiler) :
]
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'