summaryrefslogtreecommitdiff
path: root/Lib/distutils/msvccompiler.py
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2003-01-31 20:40:15 +0000
committerThomas Heller <theller@ctypes.org>2003-01-31 20:40:15 +0000
commit9582794c17b92ae5bb83878abe854d965e51dcdb (patch)
treea43f1d8b30b41d948d2428025e16d66e1ddfb39c /Lib/distutils/msvccompiler.py
parentcf356fd86530d0ea224a7a0c950058e8ba65f1a5 (diff)
downloadcpython-git-9582794c17b92ae5bb83878abe854d965e51dcdb.tar.gz
Pass the preprocessor options also to the resource compiler
when compiling .RC files. From Robin Dunn, fixes SF # 669198.
Diffstat (limited to 'Lib/distutils/msvccompiler.py')
-rw-r--r--Lib/distutils/msvccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py
index 65a50cc79a..e07a6d5a0c 100644
--- a/Lib/distutils/msvccompiler.py
+++ b/Lib/distutils/msvccompiler.py
@@ -310,7 +310,7 @@ class MSVCCompiler (CCompiler) :
input_opt = src
output_opt = "/fo" + obj
try:
- self.spawn ([self.rc] +
+ self.spawn ([self.rc] + pp_opts +
[output_opt] + [input_opt])
except DistutilsExecError, msg:
raise CompileError, msg