Trees | Indices | Help |
|
---|
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'
'
$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
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.
'
$Id: unixccompiler.py 47123 2006年06月27日 10:08:25Z ronald.oussoren $
'
Trees | Indices | Help |
|
---|