We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caed4ec commit e22369fCopy full SHA for e22369f
src/setuptools_dso/compiler.py
@@ -90,8 +90,9 @@ def new_compiler(**kws):
90
if not compiler.initialized: # extra super lazy initialization...
91
compiler.initialize() # populates self.cc among others
92
93
- if compiler.__class__.preprocess is CCompiler.preprocess:
94
- # default impl. is a no-op...
+ # Checks if the compiler's preprocess is a the same as CCompiler's as...
+ if compiler.__class__.preprocess.__code__ == CCompiler.preprocess.__code__:
95
+ # ... the default impl. in CCompiler is a no-op...
96
compiler.preprocess = partial(_msvc_preprocess, compiler)
97
98
if getattr(compiler, 'preprocessor', None) is None:
0 commit comments