Ñò §ÚêLc @ s× d Z d Z d d k Z d d k Z d d k Z d d k l Z l Z d d k l Z d d k l Z d d k l Z l Z l Z d d k l Z l Z l Z l Z d d k l Z d „ Z d e f d „ ƒ YZ d S( s9 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' sB $Id: unixccompiler.py 82274 2010-06-27 12:39:22Z ronald.oussoren $iÿÿÿÿN( t StringTypet NoneType( t sysconfig( t newer( t CCompilert gen_preprocess_optionst gen_lib_options( t DistutilsExecErrort CompileErrort LibErrort LinkError( t logc C sâ d } } t | ƒ } t i ƒ d } t | i d ƒ d ƒ } | d j o t } } n d | j } d | j } | p d t i j oB x? y! | i d ƒ } | | | d 5WqŒ t j o PqŒ XqŒ n d t i j o# | o | t i d i ƒ } n | o; y! | i d ƒ } | | | d 5Wq@t j o q@Xn d } d | j o! | i d ƒ } | | d } n/ d | j o! | i d ƒ } | | d } n | o5 t i 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. i i t .i s -archs -isysroott ARCHFLAGSi s4 Compiling with an SDK that doesn't seem to exist: %ss$ Please check your Xcode installationN( t listt ost unamet intt splitt Truet environt indext ValueErrort Nonet patht isdirR t warn( t compiler_sot cc_argst stripArcht stripSysroott kernel_versiont major_versionR t sysroott idx( ( s/ /usr/lib64/python2.6/distutils/unixccompiler.pyt _darwin_compiler_fixup, sF t UnixCCompilerc B sk e Z d Z h d&