MCPcopy Create free account
hub / github.com/numpy/numpy / MSVCCompiler

Class MSVCCompiler

numpy/distutils/msvccompiler.py:39–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39class MSVCCompiler(_MSVCCompiler):
40 def __init__(self, verbose=0, dry_run=0, force=0):
41 _MSVCCompiler.__init__(self, verbose, dry_run, force)
42
43 def initialize(self):
44 # The 'lib' and 'include' variables may be overwritten
45 # by MSVCCompiler.initialize, so save them for later merge.
46 environ_lib = os.getenv('lib', '')
47 environ_include = os.getenv('include', '')
48 _MSVCCompiler.initialize(self)
49
50 # Merge current and previous values of 'lib' and 'include'
51 os.environ['lib'] = _merge(environ_lib, os.environ['lib'])
52 os.environ['include'] = _merge(environ_include, os.environ['include'])
53
54 # msvc9 building for 32 bits requires SSE2 to work around a
55 # compiler bug.
56 if platform_bits == 32:
57 self.compile_options += ['/arch:SSE2']
58 self.compile_options_debug += ['/arch:SSE2']
59
60
61def lib_opts_if_msvc(build_cmd):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected