customize_compiler is recommended by distutils doc

On Unix platforms, environment variables such as CFLAGS, LDFLAGS are not
honored if this is not called.
This commit is contained in:
Matt Mullins
2016-08-20 15:00:05 -07:00
parent 97824b957b
commit 82a53013bd

View File

@@ -35,7 +35,7 @@ def get_compiler(compiler, **compiler_attrs):
"""get and customize a compiler"""
if compiler is None or isinstance(compiler, str):
cc = ccompiler.new_compiler(compiler=compiler)
# customize_compiler(cc)
customize_compiler(cc)
if cc.compiler_type == 'mingw32':
customize_mingw(cc)
else: