summaryrefslogtreecommitdiff
path: root/Lib/distutils/_msvccompiler.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-07-30 11:51:30 -0700
committerSteve Dower <steve.dower@microsoft.com>2015-07-30 11:51:30 -0700
commite63a329c186e64e72b3e09b448a49612ec2b5e4a (patch)
treee3677c3a049a7c5be9ded8067c5252d1e39d7c0f /Lib/distutils/_msvccompiler.py
parent4de1c1a9df10ca38608b5283374fce21b7bf0c8a (diff)
parentb465cb50de6e11ce2399cb8c1f2811054ce135c8 (diff)
downloadcpython-git-e63a329c186e64e72b3e09b448a49612ec2b5e4a.tar.gz
Update default msvccompiler link options to match the options used for core builds.
Diffstat (limited to 'Lib/distutils/_msvccompiler.py')
-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 896d9d927f..4e2eed72a9 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'