[Python-checkins] CVS: distutils/distutils/command build_ext.py,1.32,1.33
Greg Ward
python-dev@python.org
Sat, 6 May 2000 09:13:05 -0400 (EDT)
Update of /projects/cvsroot/distutils/distutils/command
In directory newcnri:/tmp/cvs-serv24485/command
Modified Files:
build_ext.py
Log Message:
Added the ability to sneak extra flags onto the C compiler command line
via an 'extra_compile_args' option in the 'build_info' dictionary.
Index: build_ext.py
===================================================================
RCS file: /projects/cvsroot/distutils/distutils/command/build_ext.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** build_ext.py 2000/04/15 22:15:07 1.32
--- build_ext.py 2000/05/06 13:12:59 1.33
***************
*** 7,11 ****
# created 1999/08/09, Greg Ward
! __revision__ = "$Id: build_ext.py,v 1.32 2000/04/15 22:15:07 gward Exp $"
import sys, os, string, re
--- 7,11 ----
# created 1999/08/09, Greg Ward
! __revision__ = "$Id: build_ext.py,v 1.33 2000/05/06 13:12:59 gward Exp $"
import sys, os, string, re
***************
*** 290,298 ****
macros = build_info.get ('macros')
include_dirs = build_info.get ('include_dirs')
objects = self.compiler.compile (sources,
output_dir=self.build_temp,
macros=macros,
include_dirs=include_dirs,
! debug=self.debug)
# Now link the object files together into a "shared object" --
--- 290,300 ----
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,
! extra_postargs=extra_args)
# Now link the object files together into a "shared object" --