summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/msvccompiler.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-06-25 02:31:16 (GMT)
committerGreg Ward <gward@python.net>2000-06-25 02:31:16 (GMT)
commit992c8f9dabadfe88147f9afa6e878ce1c645ce31 (patch)
tree8bd0bbf0826a526da3f2ba538881db23731c8384 /Lib/distutils/msvccompiler.py
parente401e15d18e1a9458c2b05a59792760caeec758a (diff)
downloadcpython-992c8f9dabadfe88147f9afa6e878ce1c645ce31.zip
cpython-992c8f9dabadfe88147f9afa6e878ce1c645ce31.tar.gz
cpython-992c8f9dabadfe88147f9afa6e878ce1c645ce31.tar.bz2
Define the 'executables' class attribute so the CCompiler constructor
doesn't blow up. We don't currently use the 'set_executables()' bureaucracy, although it would be nice to do so for consistency with UnixCCompiler.
Diffstat (limited to 'Lib/distutils/msvccompiler.py')
-rw-r--r--Lib/distutils/msvccompiler.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py
index 06d8501..2e80ed5 100644
--- a/Lib/distutils/msvccompiler.py
+++ b/Lib/distutils/msvccompiler.py
@@ -167,6 +167,13 @@ class MSVCCompiler (CCompiler) :
compiler_type = 'msvc'
+ # Just set this so CCompiler's constructor doesn't barf. We currently
+ # don't use the 'set_executables()' bureaucracy provided by CCompiler,
+ # as it really isn't necessary for this sort of single-compiler class.
+ # Would be nice to have a consistent interface with UnixCCompiler,
+ # though, so it's worth thinking about.
+ executables = {}
+
# Private class data (need to distinguish C from C++ source for compiler)
_c_extensions = ['.c']
_cpp_extensions = ['.cc','.cpp']
@@ -295,7 +302,7 @@ class MSVCCompiler (CCompiler) :
if extra_postargs:
lib_args.extend (extra_postargs)
try:
- self.spawn ([self.link] + ld_args)
+ self.spawn ([self.lib] + lib_args)
except DistutilsExecError, msg:
raise LibError, msg