summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-05-06 13:12:59 (GMT)
committerGreg Ward <gward@python.net>2000-05-06 13:12:59 (GMT)
commit18856b80e295c2f1fa299d4cbcbc4d09c821f174 (patch)
tree185daded645d55078115033b8ba334e36092d86d /Lib/distutils
parent4b1235cdac2d34bc24c6053936ed33afefe6e4b8 (diff)
downloadcpython-18856b80e295c2f1fa299d4cbcbc4d09c821f174.zip
cpython-18856b80e295c2f1fa299d4cbcbc4d09c821f174.tar.gz
cpython-18856b80e295c2f1fa299d4cbcbc4d09c821f174.tar.bz2
Added the ability to sneak extra flags onto the C compiler command line
via an 'extra_compile_args' option in the 'build_info' dictionary.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/build_ext.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 422b8ca..a430c2b 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -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