Lines Matching refs:compiler
4 for the Distutils compiler abstraction model."""
25 by real compiler classes. Also has some utility methods used by
26 several compiler classes.
28 The basic idea behind a compiler abstraction class is that each
32 against, etc. -- are attributes of the compiler instance. To allow for
38 # keeps code that wants to know what kind of compiler it's dealing with
39 # from having to import all possible compiler classes just to do an
43 # function) -- authors of new compiler interface classes are
47 # XXX things not handled by this compiler abstraction model:
48 # * client can't provide additional options for a compiler,
50 # should be the domain of concrete compiler abstraction classes
132 executables that may be specified here depends on the compiler
134 compiler the C/C++ compiler
149 # this is appropriate when a compiler class is for exactly one
150 # compiler/OS combination (eg. MSVCCompiler). Other compiler
197 compiler object. The optional parameter 'value' should be a
200 compiler used (XXX true? does ANSI say anything about this?)
213 this compiler object. If the same macro is defined by
231 header files. The compiler is instructed to search directories in
242 any list of standard include directories that the compiler may
249 all links driven by this compiler object. Note that 'libname'
252 the linker, the compiler, or the compiler class (depending on the
265 this compiler object to 'libnames' (a list of strings). This does
304 compilers") to be included in every link driven by this compiler
321 # Helper method to prep compiler in subclass compile() methods
517 particular compiler and compiler class (eg. MSVCCompiler can
541 'debug' is a boolean; if true, the compiler will be instructed to
547 command-line arguments to prepand/append to the compiler command
550 for those occasions when the abstract compiler framework doesn't
561 # A concrete compiler class can either override this method
582 # A concrete compiler class that does not override compile()
709 """Return the compiler option to add 'dir' to the list of
715 """Return the compiler option to add 'dir' to the list of
721 """Return the compiler option to add 'dir' to the list of libraries
887 # Map a sys.platform/os.name ('posix', 'nt') to the default compiler
896 # compiler
907 """ Determine the default compiler to use for the given platform.
923 for pattern, compiler in _default_compilers:
926 return compiler
927 # Default to Unix compiler
930 # Map compiler types to (module_name, class_name) pairs -- ie. where to
931 # find the code that implements an interface to this compiler. (The module
934 "standard UNIX-style compiler"),
938 "Cygwin port of GNU C Compiler for Win32"),
940 "Mingw32 port of GNU C Compiler for Win32"),
942 "Borland C++ Compiler"),
944 "EMX port of GNU C Compiler for OS/2"),
948 """Print list of available compilers (used by the "--help-compiler"
951 # XXX this "knows" that the compiler option it's describing is
952 # "--compiler", which just happens to be the case for the three
956 for compiler in compiler_class.keys():
957 compilers.append(("compiler="+compiler, None,
958 compiler_class[compiler][2]))
964 def new_compiler(plat=None, compiler=None, verbose=0, dry_run=0, force=0):
966 platform/compiler combination. 'plat' defaults to 'os.name'
967 (eg. 'posix', 'nt'), and 'compiler' defaults to the default compiler
971 possible to ask for a Unix compiler object under Windows, and a
972 Microsoft compiler object under Unix -- if you supply a value for
973 'compiler', 'plat' is ignored.
979 if compiler is None:
980 compiler = get_default_compiler(plat)
982 (module_name, class_name, long_description) = compiler_class[compiler]
985 if compiler is not None:
986 msg = msg + " with '%s' compiler" % compiler
1011 two types of compilers: the typical Unix compiler and Visual C++.
1058 def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries):
1064 options suitable for use with some compiler (depending on the two format
1070 lib_opts.append(compiler.library_dir_option(dir))
1073 opt = compiler.runtime_library_dir_option(dir)
1088 lib_file = compiler.find_library_file([lib_dir], lib_name)
1092 compiler.warn("no library file corresponding to "
1095 lib_opts.append(compiler.library_option(lib))