summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/scons.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r--numpy/distutils/command/scons.py3
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):