Package distutils :: Module unixccompiler
[hide private]
[frames] | no frames]

Module unixccompiler

distutils.unixccompiler

Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
  * macros defined with -Dname[=value]
  * macros undefined with -Uname
  * include search directories specified with -Idir
  * libraries specified with -lllib
  * library search directories specified with -Ldir
  * compile handled by 'cc' (or similar) executable with -c option:
    compiles .c to .o
  * link static library handled by 'ar' command (possibly with 'ranlib')
  * link shared library handled by 'cc -shared'

Classes [hide private]
UnixCCompiler
Functions [hide private]
 
_darwin_compiler_fixup(compiler_so, cc_args)
This function will strip '-isysroot PATH' and '-arch ARCH' from the compile flags if the user has specified one them in extra_compile_flags.
Variables [hide private]
  __revision__ = '$Id: unixccompiler.py 47123 2006-06-27 10:08:2...

Imports: os, sys, StringType, NoneType, copy, sysconfig, newer, CCompiler, gen_preprocess_options, gen_lib_options, DistutilsExecError, CompileError, LibError, LinkError, log


Function Details [hide private]

_darwin_compiler_fixup(compiler_so, cc_args)

 

This function will strip '-isysroot PATH' and '-arch ARCH' from the compile flags if the user has specified one them in extra_compile_flags.

This is needed because '-arch ARCH' adds another architecture to the build, without a way to remove an architecture. Furthermore GCC will barf if multiple '-isysroot' arguments are present.


Variables Details [hide private]

__revision__

Value:
'$Id: unixccompiler.py 47123 2006-06-27 10:08:25Z ronald.oussoren $'