From df453fd02650913a081d7b9403e62bbbabc9d29b Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 9 Sep 2002 12:16:58 +0000 Subject: [PATCH] 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. --- Lib/distutils/unixccompiler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index d94c3840926..831717baca4 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