diff options
author | David Cournapeau <cournape@gmail.com> | 2008-06-08 09:20:03 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-06-08 09:20:03 +0000 |
commit | 8fac05d6e37b6d57a08092a32c8a81768a430441 (patch) | |
tree | dae67718dd4bf4e9d5b6bee4871bc767da1a0129 /numpy/distutils/command/scons.py | |
parent | b7ba98c3459de3e79144fda1d7bd7e03402363fd (diff) | |
download | numpy-8fac05d6e37b6d57a08092a32c8a81768a430441.tar.gz |
MSVC compiler does not have compiler_cxx member.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 1c825ffec..fbbf525f3 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -94,6 +94,9 @@ def dist2sconsfc(compiler): def dist2sconscxx(compiler): """This converts the name passed to distutils to scons name convention (C++ compiler). The argument should be a Compiler instance.""" + if compiler.compiler_type == 'msvc': + return compiler.compiler_type + return compiler.compiler_cxx[0] def get_compiler_executable(compiler): |