Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9582794

Browse files
author
Thomas Heller
committed
Pass the preprocessor options also to the resource compiler
when compiling .RC files. From Robin Dunn, fixes SF # 669198.
1 parent cf356fd commit 9582794

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/msvccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def compile(self, sources,
310310
input_opt = src
311311
output_opt = "/fo" + obj
312312
try:
313-
self.spawn ([self.rc] +
313+
self.spawn ([self.rc] + pp_opts +
314314
[output_opt] + [input_opt])
315315
except DistutilsExecError, msg:
316316
raise CompileError, msg

0 commit comments

Comments
 (0)