]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Pass the preprocessor options also to the resource compiler
authorThomas Heller <theller@ctypes.org>
Fri, 31 Jan 2003 20:40:15 +0000 (20:40 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 31 Jan 2003 20:40:15 +0000 (20:40 +0000)
when compiling .RC files.

From Robin Dunn, fixes SF # 669198.

Lib/distutils/msvccompiler.py

index 65a50cc79a4a839713c62277a4a4180e0fe18c13..e07a6d5a0ca77942ce1814ce9c7e003936d36333 100644 (file)
@@ -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