Home | History | Annotate | Download | only in distutils

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 'lib' to the list of libraries
888 # Map a sys.platform/os.name ('posix', 'nt') to the default compiler
897 # compiler
908 """ Determine the default compiler to use for the given platform.
922 for pattern, compiler in _default_compilers:
925 return compiler
926 # Default to Unix compiler
929 # Map compiler types to (module_name, class_name) pairs -- ie. where to
930 # find the code that implements an interface to this compiler. (The module
933 "standard UNIX-style compiler"),
937 "Cygwin port of GNU C Compiler for Win32"),
939 "Mingw32 port of GNU C Compiler for Win32"),
941 "Borland C++ Compiler"),
943 "EMX port of GNU C Compiler for OS/2"),
947 """Print list of available compilers (used by the "--help-compiler"
950 # XXX this "knows" that the compiler option it's describing is
951 # "--compiler", which just happens to be the case for the three
955 for compiler in compiler_class.keys():
956 compilers.append(("compiler="+compiler, None,
957 compiler_class[compiler][2]))
963 def new_compiler(plat=None, compiler=None, verbose=0, dry_run=0, force=0):
965 platform/compiler combination. 'plat' defaults to 'os.name'
966 (eg. 'posix', 'nt'), and 'compiler' defaults to the default compiler
970 possible to ask for a Unix compiler object under Windows, and a
971 Microsoft compiler object under Unix -- if you supply a value for
972 'compiler', 'plat' is ignored.
978 if compiler is None:
979 compiler = get_default_compiler(plat)
981 (module_name, class_name, long_description) = compiler_class[compiler]
984 if compiler is not None:
985 msg = msg + " with '%s' compiler" % compiler
1010 two types of compilers: the typical Unix compiler and Visual C++.
1057 def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries):
1063 options suitable for use with some compiler (depending on the two format
1069 lib_opts.append(compiler.library_dir_option(dir))
1072 opt = compiler.runtime_library_dir_option(dir)
1087 lib_file = compiler.find_library_file([lib_dir], lib_name)
1091 compiler.warn("no library file corresponding to "
1094 lib_opts.append(compiler.library_option(lib))