summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2003-01-31 20:40:15 (GMT)
committerThomas Heller <theller@ctypes.org>2003-01-31 20:40:15 (GMT)
commit9582794c17b92ae5bb83878abe854d965e51dcdb (patch)
treea43f1d8b30b41d948d2428025e16d66e1ddfb39c
parentcf356fd86530d0ea224a7a0c950058e8ba65f1a5 (diff)
downloadcpython-9582794c17b92ae5bb83878abe854d965e51dcdb.zip
cpython-9582794c17b92ae5bb83878abe854d965e51dcdb.tar.gz
cpython-9582794c17b92ae5bb83878abe854d965e51dcdb.tar.bz2
Pass the preprocessor options also to the resource compiler
when compiling .RC files. From Robin Dunn, fixes SF # 669198.
-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 65a50cc..e07a6d5 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