summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-09-09 12:16:58 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-09-09 12:16:58 (GMT)
commitdf453fd02650913a081d7b9403e62bbbabc9d29b (patch)
tree7bfdd48cb0a142a34968b5eaf6977fd4a27f7dd1 /Lib
parent4013cbd06becfbfbb63b9b524e5c41513f497929 (diff)
downloadcpython-df453fd02650913a081d7b9403e62bbbabc9d29b.zip
cpython-df453fd02650913a081d7b9403e62bbbabc9d29b.tar.gz
cpython-df453fd02650913a081d7b9403e62bbbabc9d29b.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/unixccompiler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
index d94c384..831717b 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