diff options
-rw-r--r-- | giscanner/ccompiler.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py index 2912fe0e..7a8dee78 100644 --- a/giscanner/ccompiler.py +++ b/giscanner/ccompiler.py @@ -40,14 +40,12 @@ def customize_compiler(compiler): any macOS specific bits and which tries to avoid using any Python specific defaults if alternatives through env vars are given. """ - - # The original customize_compiler() in distutils calls into macOS setup - # code the first time it is called. This makes sure we run that setup - # code as well. - dummy = distutils.ccompiler.new_compiler() - orig_customize_compiler(dummy) - if compiler.compiler_type == "unix": + # The original customize_compiler() in distutils calls into macOS setup + # code the first time it is called. This makes sure we run that setup + # code as well. + dummy = distutils.ccompiler.new_compiler() + orig_customize_compiler(dummy) (cc, cxx, ldshared, shlib_suffix, ar, ar_flags) = \ get_config_vars('CC', 'CXX', 'LDSHARED', 'SHLIB_SUFFIX', 'AR', 'ARFLAGS') |