Commit a65727b5 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Patch #681504] Call customize_compiler in config command

parent 3ea65a4b
...@@ -17,6 +17,7 @@ import sys, os, string, re ...@@ -17,6 +17,7 @@ import sys, os, string, re
from types import * from types import *
from distutils.core import Command from distutils.core import Command
from distutils.errors import DistutilsExecError from distutils.errors import DistutilsExecError
from distutils.sysconfig import customize_compiler
from distutils import log from distutils import log
LANG_EXT = {'c': '.c', LANG_EXT = {'c': '.c',
...@@ -104,6 +105,7 @@ class config (Command): ...@@ -104,6 +105,7 @@ class config (Command):
if not isinstance(self.compiler, CCompiler): if not isinstance(self.compiler, CCompiler):
self.compiler = new_compiler(compiler=self.compiler, self.compiler = new_compiler(compiler=self.compiler,
dry_run=self.dry_run, force=1) dry_run=self.dry_run, force=1)
customize_compiler(self.compiler)
if self.include_dirs: if self.include_dirs:
self.compiler.set_include_dirs(self.include_dirs) self.compiler.set_include_dirs(self.include_dirs)
if self.libraries: if self.libraries:
......
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