Pass the preprocessor options also to the resource compiler
when compiling .RC files.
From Robin Dunn, fixes SF # 669198.
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 @@
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