[Distutils] build_clib
Robin Becker
robin@jessikat.fsnet.co.uk
Tue Aug 6 11:55:01 2002
Would it be a good idea to allow for extra_compile_arg(ument)s in the build_clib
command. I find I need this when I want to compile with symbols,
but don't want full debugging.
I think that this can be done using something like
extra_args = build_info.get('extra_compile_args',[])
if os.environ.has_key('CFLAGS'):
extra_args.extend(string.split(os.environ['CFLAGS']))
objects = self.compiler.compile(sources,
output_dir=self.build_temp,
macros=macros,
include_dirs=include_dirs,
debug=self.debug,
extra_postargs=extra_args)
near line 225 in build_clib.
--
Robin Becker