Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9afa94ed
Commit
9afa94ed
authored
Jul 16, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug #441527] Fixes for preprocessor support, contributed by Tarn
Weisner Burton
parent
da8d4645
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Lib/distutils/unixccompiler.py
Lib/distutils/unixccompiler.py
+5
-4
No files found.
Lib/distutils/unixccompiler.py
View file @
9afa94ed
...
...
@@ -99,12 +99,13 @@ class UnixCCompiler (CCompiler):
if
extra_preargs
:
pp_args
[:
0
]
=
extra_preargs
if
extra_postargs
:
extra_post
args
.
extend
(
extra_postargs
)
pp_
args
.
extend
(
extra_postargs
)
# We need to preprocess: either we're being forced to, or the
# source file is newer than the target (or the target doesn't
# 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
# the source file is newer than the target (or the target doesn't
# exist).
if
self
.
force
or
(
output_file
and
newer
(
source
,
output_file
)):
if
self
.
force
or
output_file
is
None
or
newer
(
source
,
output_file
)):
if
output_file
:
self
.
mkpath
(
os
.
path
.
dirname
(
output_file
))
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment