113c113 < self.gcc_version, self.ld_version, self.dllwrap_version = \ --- > self.gcc_version, self.ld_version, self.dllwrap_version, self.clang_gcc_version = \ 314a315,355 > class ClangCCompiler(CygwinCCompiler): > """ Handles the Clang C compiler. > """ > compiler_type = 'clang' > > def __init__(self, verbose=0, dry_run=0, force=0): > > CygwinCCompiler.__init__ (self, verbose, dry_run, force) > > # ld_version >= "2.13" support -shared so use it instead of > # -mdll -static > if self.ld_version >= "2.13": > shared_option = "-shared" > else: > shared_option = "-mdll -static" > > # A real mingw32 doesn't need to specify a different entry point, > # but cygwin 2.91.57 in no-cygwin-mode needs it. > if self.clang_gcc_version <= "2.91.57": > entry_point = '--entry _DllMain@12' > else: > entry_point = '' > > self.set_executables(compiler='clang -mno-cygwin -O -Wall', > compiler_so='clang -mno-cygwin -mdll -O -Wall', > compiler_cxx='clang++ -mno-cygwin -O -Wall', > linker_exe='clang -mno-cygwin', > linker_so='%s -mno-cygwin %s %s' > % (self.linker_dll, shared_option, > entry_point)) > # Maybe we should also append -mthreads, but then the finished > # dlls need another dll (mingwm10.dll see Mingw32 docs) > # (-mthreads: Support thread-safe exception handling on `Mingw32') > > # no additional libraries needed > self.dll_libraries=[] > > # Include the appropriate MSVC runtime library if Python was built > # with MSVC 7.0 or later. > self.dll_libraries = get_msvcr() > 394c435 < commands = ['gcc -dumpversion', 'ld -v', 'dllwrap --version'] --- > commands = ['gcc -dumpversion', 'ld -v', 'dllwrap --version', 'clang -dumpversion']