summaryrefslogtreecommitdiff
path: root/unixccompiler.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-09-09 12:16:58 +0000
committerAndrew M. Kuchling <amk@amk.ca>2002-09-09 12:16:58 +0000
commit23ad69adc2c9dd95e91445962900405da7115026 (patch)
treec464095304d78e62c062115f5981072c5d5cecf6 /unixccompiler.py
parent6dddf6bec77b5dcf69da39d556471f094eb8ecd8 (diff)
downloadpython-setuptools-git-23ad69adc2c9dd95e91445962900405da7115026.tar.gz
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 'unixccompiler.py')
-rw-r--r--unixccompiler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/unixccompiler.py b/unixccompiler.py
index d94c3840..831717ba 100644
--- a/unixccompiler.py
+++ b/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