From: Andrew M. Kuchling Date: Mon, 9 Sep 2002 12:16:58 +0000 (+0000) Subject: The .preprocess() method didn't work, because it didn't add the input file X-Git-Tag: v2.3c1~4165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df453fd02650913a081d7b9403e62bbbabc9d29b;p=python The .preprocess() method didn't work, because it didn't add the input file to the command-line arguments. Fix this by adding the source filename. --- diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index d94c384092..831717baca 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -92,6 +92,7 @@ class UnixCCompiler(CCompiler): pp_args[:0] = extra_preargs if extra_postargs: pp_args.extend(extra_postargs) + pp_args.append(source) # We need to preprocess: either we're being forced to, or we're # generating output to stdout, or there's a target output file and