Re-enable the broken no-autodetect feature
authorThomas Nagy <tnagy1024@gmail.com>
Wed, 25 May 2011 16:33:44 +0000 (16:33 +0000)
committerThomas Nagy <tnagy1024@gmail.com>
Wed, 25 May 2011 16:33:44 +0000 (16:33 +0000)
git-svn-id: https://waf.googlecode.com/svn/trunk@11299 f0382ac9-c320-0410-b3f0-b508d59f5a85

waflib/Tools/msvc.py

index 0a154b5389a3723788f48a7ace09d8e60ac65290..5189aef40cd56fa51168415d4aca4465300f482d 100644 (file)
@@ -553,7 +553,7 @@ def autodetect(conf):
        v['INCLUDES'] = includes
        v['LIBPATH'] = libdirs
        v['MSVC_COMPILER'] = compiler
-       v['CC_VERSION'] = (str(version), '0', '0')
+       v['MSVC_VERSION'] = float(version)
 
 def _get_prog_names(conf, compiler):
        if compiler=='intel':
@@ -573,13 +573,11 @@ def find_msvc(conf):
        if sys.platform == 'cygwin':
                conf.fatal('MSVC module does not work under cygwin Python!')
 
+       # the autodetection is supposed to be performed before entering in this method
        v = conf.env
-
-       compiler, version, path, includes, libdirs = detect_msvc(conf)
-       v['PATH'] = path
-       v['INCLUDES'] = includes
-       v['LIBPATH'] = libdirs
-       v['MSVC_VERSION'] = float(version)
+       path = v['PATH']
+       compiler = v['MSVC_COMPILER']
+       version = v['MSVC_VERSION']
 
        compiler_name, linker_name, lib_name = _get_prog_names(conf, compiler)
        v.MSVC_MANIFEST = (compiler == 'msvc' and float(version) >= 8) or (compiler == 'wsdk' and float(version) >= 6) or (compiler == 'intel' and float(version) >= 11)