Kaydet (Commit) df9e6b81 authored tarafından Greg Ward's avatar Greg Ward

Fixed to respect 'define_macros' and 'undef_macros' on Extension object.

üst d283ce73
...@@ -403,6 +403,10 @@ class build_ext (Command): ...@@ -403,6 +403,10 @@ class build_ext (Command):
# command line args. Hence we combine them in order: # command line args. Hence we combine them in order:
extra_args = ext.extra_compile_args or [] extra_args = ext.extra_compile_args or []
macros = ext.define_macros[:]
for undef in ext.undef_macros:
macros.append((undef,))
# XXX and if we support CFLAGS, why not CC (compiler # XXX and if we support CFLAGS, why not CC (compiler
# executable), CPPFLAGS (pre-processor options), and LDFLAGS # executable), CPPFLAGS (pre-processor options), and LDFLAGS
# (linker options) too? # (linker options) too?
...@@ -413,7 +417,7 @@ class build_ext (Command): ...@@ -413,7 +417,7 @@ class build_ext (Command):
objects = self.compiler.compile (sources, objects = self.compiler.compile (sources,
output_dir=self.build_temp, output_dir=self.build_temp,
#macros=macros, macros=macros,
include_dirs=ext.include_dirs, include_dirs=ext.include_dirs,
debug=self.debug, debug=self.debug,
extra_postargs=extra_args) extra_postargs=extra_args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment