³ò žl‡Jc @sÛdZdZddkZddkZddklZlZddklZddkl Z ddk l Z ddk l Z lZlZdd klZlZlZlZdd klZd „Zd e fd „ƒYZdS(s9distutils.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' sB$Id: unixccompiler.py 52237 2006-10-08 17:52:37Z ronald.oussoren $iÿÿÿÿN(t StringTypetNoneType(tcopy(t sysconfig(tnewer(t CCompilertgen_preprocess_optionstgen_lib_options(tDistutilsExecErrort CompileErrortLibErrort LinkError(tlogc CsŸd}}t|ƒ}tiƒd}t|idƒdƒ}|djot}}nd|j}d|j}|oBx?y!|idƒ}|||d5Wq|tj oPq|Xq|n|o;y!|idƒ}|||d5Wqýtj oqýXnd }d|jo!|idƒ}||d}n/d|jo!|idƒ}||d}n|o5ti i |ƒ o!t i d|ƒt i d ƒn|S( se 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. iit.is-archs -isysrootis4Compiling with an SDK that doesn't seem to exist: %ss$Please check your Xcode installationN( tlisttostunametinttsplittTruetindext ValueErrortNonetpathtisdirR twarn( t compiler_sotcc_argst stripArcht stripSysroottkernel_versiont major_versionRtsysroottidx((s*/sys/lib/python/distutils/unixccompiler.pyt_darwin_compiler_fixup-sB          t UnixCCompilerc BsreZdZhd%d<dgd<dgd<dgd<ddgd<dgd<d d gd <d%d           6   (t__doc__t __revision__RRCttypesRRRt distutilsRtdistutils.dep_utilRtdistutils.ccompilerRRRtdistutils.errorsRR R R R R"R#(((s*/sys/lib/python/distutils/unixccompiler.pyss" :