mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Removed some debugging code that slipped into the last checkin.
Ensure that 'extra_args' (whether compile or link args) is never None.
This commit is contained in:
parent
f46a688e84
commit
e401e15d18
1 changed files with 3 additions and 4 deletions
|
@ -188,8 +188,7 @@ class build_ext (Command):
|
||||||
|
|
||||||
# Setup the CCompiler object that we'll use to do all the
|
# Setup the CCompiler object that we'll use to do all the
|
||||||
# compiling and linking
|
# compiling and linking
|
||||||
self.compiler = new_compiler (#compiler=self.compiler,
|
self.compiler = new_compiler (compiler=self.compiler,
|
||||||
compiler="msvc",
|
|
||||||
verbose=self.verbose,
|
verbose=self.verbose,
|
||||||
dry_run=self.dry_run,
|
dry_run=self.dry_run,
|
||||||
force=self.force)
|
force=self.force)
|
||||||
|
@ -393,7 +392,7 @@ class build_ext (Command):
|
||||||
# The environment variable should take precedence, and
|
# The environment variable should take precedence, and
|
||||||
# any sensible compiler will give precendence to later
|
# any sensible compiler will give precendence to later
|
||||||
# command line args. Hence we combine them in order:
|
# command line args. Hence we combine them in order:
|
||||||
extra_args = ext.extra_compile_args
|
extra_args = ext.extra_compile_args or []
|
||||||
|
|
||||||
# XXX and if we support CFLAGS, why not CC (compiler
|
# XXX and if we support CFLAGS, why not CC (compiler
|
||||||
# executable), CPPFLAGS (pre-processor options), and LDFLAGS
|
# executable), CPPFLAGS (pre-processor options), and LDFLAGS
|
||||||
|
@ -415,7 +414,7 @@ class build_ext (Command):
|
||||||
# that go into the mix.
|
# that go into the mix.
|
||||||
if ext.extra_objects:
|
if ext.extra_objects:
|
||||||
objects.extend (ext.extra_objects)
|
objects.extend (ext.extra_objects)
|
||||||
extra_args = ext.extra_link_args
|
extra_args = ext.extra_link_args or []
|
||||||
|
|
||||||
# Bunch of fixing-up we have to do for Microsoft's linker.
|
# Bunch of fixing-up we have to do for Microsoft's linker.
|
||||||
if self.compiler.compiler_type == 'msvc':
|
if self.compiler.compiler_type == 'msvc':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue