]> granicus.if.org Git - python/commitdiff
Added the ability to sneak extra flags onto the C compiler command line
authorGreg Ward <gward@python.net>
Sat, 6 May 2000 13:12:59 +0000 (13:12 +0000)
committerGreg Ward <gward@python.net>
Sat, 6 May 2000 13:12:59 +0000 (13:12 +0000)
via an 'extra_compile_args' option in the 'build_info' dictionary.

Lib/distutils/command/build_ext.py

index 422b8cae1fa88192082660c8e4f478e5dc1173e6..a430c2b3cf09c2663b12b08c1d403333d3fbb3ce 100644 (file)
@@ -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