]> granicus.if.org Git - python/commitdiff
The .preprocess() method didn't work, because it didn't add the input file
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 9 Sep 2002 12:16:58 +0000 (12:16 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 9 Sep 2002 12:16:58 +0000 (12:16 +0000)
    to the command-line arguments.  Fix this by adding the source filename.

Lib/distutils/unixccompiler.py

index d94c3840926be7502493e9926bac3cd6027d1f13..831717baca47bb640966f3610468d5e8515c79eb 100644 (file)
@@ -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