Commit 07d2ef75 authored by Martin v. Löwis's avatar Martin v. Löwis

Let the SDK setup override distutils logic.

parent dc8d4ae1
......@@ -214,6 +214,16 @@ class MSVCCompiler (CCompiler) :
self.initialized = False
def initialize(self):
self.__paths = []
if os.environ.has_key("MSSdk") and self.find_exe("cl.exe"):
# Assume that the SDK set up everything alright; don't try to be
# smarter
self.cc = "cl.exe"
self.linker = "link.exe"
self.lib = "lib.exe"
self.rc = "rc.exe"
self.mc = "mc.exe"
else:
self.__paths = self.get_msvc_paths("path")
if len (self.__paths) == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment