Lines Matching refs:self

98     def __init__(self, verbose=0, dry_run=0, force=0):
100 UnixCCompiler.__init__(self, verbose, dry_run, force)
103 self.debug_print("Python's GCC status: %s (details: %s)" %
106 self.warn(
112 self.gcc_version, self.ld_version, self.dllwrap_version = \
114 self.debug_print(self.compiler_type + ": gcc %s, ld %s, dllwrap %s\n" %
115 (self.gcc_version,
116 self.ld_version,
117 self.dllwrap_version) )
124 if self.ld_version >= "2.10.90":
125 self.linker_dll = "gcc"
127 self.linker_dll = "dllwrap"
131 if self.ld_version >= "2.13":
138 self.set_executables(compiler='gcc -mcygwin -O -Wall',
143 (self.linker_dll, shared_option)))
146 if self.gcc_version == "2.91.57":
149 self.dll_libraries=["msvcrt"]
150 self.warn(
155 self.dll_libraries = get_msvcr()
157 def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
162 self.spawn(["windres", "-i", src, "-o", obj])
167 self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
172 def link(self, target_desc, objects, output_filename, output_dir=None,
183 libraries.extend(self.dll_libraries)
188 (target_desc != self.EXECUTABLE or self.linker_dll == "gcc")):
212 self.execute(write_file, (def_file, contents),
218 if self.linker_dll == "dllwrap":
230 # (target_desc != self.EXECUTABLE or self.linker_dll == "gcc")):
241 UnixCCompiler.link(self, target_desc, objects, output_filename,
250 def object_filenames(self, source_filenames, strip_dir=0, output_dir=''):
258 if ext not in (self.src_extensions + ['.rc','.res']):
266 base + ext + self.obj_extension))
269 base + self.obj_extension))
278 def __init__(self, verbose=0, dry_run=0, force=0):
280 CygwinCCompiler.__init__ (self, verbose, dry_run, force)
284 if self.ld_version >= "2.13":
291 if self.gcc_version <= "2.91.57":
300 self.set_executables(compiler='gcc -O -Wall',
305 % (self.linker_dll, shared_option,
312 self.dll_libraries=[]
316 self.dll_libraries = get_msvcr()