mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Added the ability to sneak extra flags onto the C compiler command line
via an 'extra_compile_args' option in the 'build_info' dictionary.
This commit is contained in:
parent
4b1235cdac
commit
18856b80e2
1 changed files with 3 additions and 1 deletions
|
@ -289,11 +289,13 @@ class build_ext (Command):
|
|||
# precedent!)
|
||||
macros = build_info.get ('macros')
|
||||
include_dirs = build_info.get ('include_dirs')
|
||||
extra_args = build_info.get ('extra_compile_args')
|
||||
objects = self.compiler.compile (sources,
|
||||
output_dir=self.build_temp,
|
||||
macros=macros,
|
||||
include_dirs=include_dirs,
|
||||
debug=self.debug)
|
||||
debug=self.debug,
|
||||
extra_postargs=extra_args)
|
||||
|
||||
# Now link the object files together into a "shared object" --
|
||||
# of course, first we have to figure out all the other things
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue