summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/ccompiler.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed exceptions -- now in errors.py to avoid expensive import of ccompiler.Greg Ward2000-05-301-16/+0
|
* Changed to catch compile/link failures and raise CompileError, LibError,Greg Ward2000-05-301-5/+31
| | | | or LinkError (exception classes defined in ccompiler.py).
* Lyle Johnson: added stubs for the four miscellaneous methods that must beGreg Ward2000-05-201-0/+27
| | | | implemented by subclasses, since they are needed by 'gen_lib_options()'.
* Added support for the 'export_symbols' parameter to 'link_shared_object()'Greg Ward2000-05-201-1/+9
| | | | | | and 'link_shared_lib()'. In MSVCCompiler, this is meaningful: it adds /EXPORT: options to the linker command line. In UnixCCompiler, it is ignored.
* Added 'runtime_library_dirs' parameter to 'link_*()' methods.Greg Ward2000-03-261-28/+43
| | | | | | Split '_fix_link_args()' up into '_fix_object_args()' (for use of 'create_static_lib() and link methods) and '_fix_lib_args()' (for the link methods only).
* Changed to pay attention to the 'runtime_library_dirs' list (= 'rpath'Greg Ward2000-03-181-1/+4
| | | | | | | | | | option in the 'build_ext' command): * in ccompiler.py: 'gen_lib_options()' now takes 'runtime_library_dirs' parameter * in unixccompiler.py and msvccompiler.py: now pass 'self.runtime_library_dirs' to 'gen_lib_options()', and define 'runtime_library_dir_option()' (although in msvccompiler.py it blows up with a DistutilsPlatformError right now!)
* Renamed 'link_static_lib() to 'create_static_lib()'.Greg Ward2000-03-101-12/+13
|
* Serious overhaul of the C compiler interface and the two classes thatGreg Ward2000-03-061-47/+243
| | | | | | | | | | | | implement it (so far): * moved filename generation methods into CCompiler base class, driven by data supplied by implementation classes * moved a bunch of common code from UnixCCompiler to convenience methods in CCompiler * overhauled MSVCCompiler's compile/link methods to look and act as much as possible like UnixCCompiler's, in order to regularize both interface and behaviour (especially by using those new convenience methods)
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-021-1/+1
|
* Added 'mkpath()' method: convenience wrapper around 'util.mkpath()' that addsGreg Ward2000-03-011-1/+4
| | | | the compiler objects 'verbose' and 'dry_run' flags.
* Added 'debug' flag to compile and link method signatures.Greg Ward2000-02-091-23/+43
| | | | | Doc fix: several paragraphs under 'link_static_lib()' moved to 'link_shared_lib()', where they belong.
* Removed a bunch of irrelevant parameters from 'link_static_lib()' signature.Greg Ward2000-01-091-8/+18
| | | | Added 'link_executable()' signature.
* Catch up with terminology change in UnixCCompiler: 'includes' -> 'include_dirs'.Greg Ward1999-12-121-6/+6
|
* Slight change to the meaning of the 'libraries' list: if a library nameGreg Ward1999-10-031-14/+37
| | | | | | | | | | | | has a directory component, then we only search for the library in that one directory, ie. ignore the 'library_dirs' lists for that one library. Changed calling convention to 'gen_lib_options()' again: now, it takes a CCompiler instance and calls methods on it instead of taking format strings. Also implemented the new "library name" semantics using the 'find_library_file()' method in the CCompiler instance. Added 'force' flag to CCompiler; added to constructor and 'new_compiler()'. Added 'warn()' method.
* Added 'extra_preargs' and 'extra_postargs' parameters to most methods,Greg Ward1999-09-291-47/+94
| | | | | | | | | | | | | which allowed us to get rid of the 'build_info' used in some places (a temporary kludge to support MSVC++ "def" files). Deleted big comment whining about that kludge. Added 'compiler_type' class attribute. Overhauled 'new_compiler()': now takes 'compiler' argument along with 'plat' (both optional with sensible defaults), and looks them both up in the new 'default_compiler' and 'compiler_class' dictionaries to figure out where to get the concrete compiler class from. Reordered arguments to 'gen_lib_options()' to match the order in which the arguments are generated (ie. -L before -l).
* Typecheck elements of 'macros' parameter in 'gen_preprocess_options().Greg Ward1999-09-211-0/+8
|
* Added 'output_dir' attribute, and 'output_dir' parameter to several methodGreg Ward1999-09-131-6/+33
| | | | | | signatures, and updated some docstrings to reflect it. Some comments added. Added 'announce()' and 'move_file()' methods.
* os.name is "posix" or "nt" or we don't care.Greg Ward1999-09-081-1/+97
| | | | | | | | Added big comment about the kludginess of passing 'build_options' to the link methods and how to fix it. Added 'gen_preprocess_options()' and 'gen_lib_options()' convenience functions -- the two cases are very similar for Unix C Compilers and VC++, so I figured I might as well unify the implementations.
* Patch from Perry Stoll:Greg Ward1999-08-291-6/+19
| | | | | | | - fix some broken abstract methods - kludge: add 'build_info' parameter to link methods - add 'object_name()' and 'shared_library_name()' - support for MSVCCompiler class on NT/Win95
* Added 'verbose' and 'dry_run' flags to CCompiler constructor andGreg Ward1999-08-141-15/+64
| | | | | | | | | | | 'new_compiler()' factory function. Added 'runtime_library_dirs' list (for -R linker option) and methods to manipulate it. Deleted some obsolete comments. Added all the filename manglign methods: 'object_filenames()', 'shared_object_filename()', 'library_filename()', 'shared_library_filename()'. Added 'spawn()' method (front end to the "real" spawn).
* The abstract base class that defines the C/C++ compiler abstraction model.Greg Ward1999-07-101-0/+313