ACC SHELL

Path : /usr/lib/python/distutils/
File Upload :
Current File : //usr/lib/python/distutils/unixccompiler.pyc

Ñò
tÄMc@sËdZdZddkZddkZddklZlZddklZddk	l
Z
ddklZl
Z
lZddklZlZlZlZdd	klZd
„Zde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'
s>$Id: unixccompiler.py 77378 2010-01-08 23:48:37Z tarek.ziade $iÿÿÿÿN(t
StringTypetNoneType(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}|pdtijoBx?y!|idƒ}|||d5WqŒtj
oPqŒXqŒndtijo#|o|tidiƒ}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	-isysroott	ARCHFLAGSis4Compiling with an SDK that doesn't seem to exist: %ss$Please check your Xcode installationN(tlisttostunametinttsplittTruetenvirontindext
ValueErrortNonetpathtisdirRtwarn(	tcompiler_sotcc_argst	stripArchtstripSysroottkernel_versiont
major_versionRtsysroottidx((s-/usr/lib/python2.6/distutils/unixccompiler.pyt_darwin_compiler_fixup,sF	


	

	t
UnixCCompilercBskeZdZhd&d6dgd6dgd6dgd6ddgd6dgd6d	d
gd6d&d6Zeid
 djodged<nddddddgZdZdZ	dZ
dZdZZ
Zeidjo
dZnd&d&d&d&d&d„Zd„Zd&dd&d„Zd&d&d&d&d&dd&d&d&d&d „
Zd!„Zd"„Zd#„Zd$„Zdd%„ZRS('tunixtpreprocessortcctcompilerRtcompiler_cxxs-sharedt	linker_sot
linker_exetars-crtarchivertranlibitdarwins.cs.Cs.ccs.cxxs.cpps.ms.os.as.sos.dylibslib%s%stcygwins.execCs|id||ƒ\}}}t||ƒ}|i|}	|o|	id|gƒn|o||	d*n|o|	i|ƒn|	i|ƒ|ip|djpt||ƒoZ|o|it	i
i|ƒƒny|i|	ƒWqt
j
o}
t|
‚qXndS(Ns-oi(t_fix_compile_argsRRR&textendtappendtforceRtmkpathRRtdirnametspawnRR(tselftsourcetoutput_filetmacrostinclude_dirst
extra_preargstextra_postargstignoretpp_optstpp_argstmsg((s-/usr/lib/python2.6/distutils/unixccompiler.pyt
preprocess‘s"

'c	Cs{|i}tidjot|||ƒ}ny&|i|||d|g|ƒWntj
o}t|‚nXdS(NR/s-o(RtsystplatformR#R7RR(	R8tobjtsrctextRR>R@RRB((s-/usr/lib/python2.6/distutils/unixccompiler.pyt_compile¬s	icCsÝ|i||ƒ\}}|i|d|ƒ}|i||ƒo‰|itii|ƒƒ|i|i|g||i	ƒ|i
o@y|i|i
|gƒWqÅtj
o}t|‚qÅXqÙnt
id|ƒdS(Nt
output_dirsskipping %s (up-to-date)(t_fix_object_argstlibrary_filenamet
_need_linkR5RRR6R7R-tobjectsR.RR	Rtdebug(R8RNtoutput_libnameRJROttarget_langtoutput_filenameRB((s-/usr/lib/python2.6/distutils/unixccompiler.pytcreate_static_lib¶s
cCs8|i||ƒ\}}|i|||ƒ\}}}t||||ƒ}t|ƒttfjo
td‚n|dj	oti	i
||ƒ}n|i||ƒoz||i|d|g}|	odg|d*n|
o|
|d*n|o|i
|ƒn|iti	i|ƒƒyÜ|tijo|i}n|i}|
djoo|ioed}ti	i|dƒdjo-d}x$d||jo|d}q‘Wn|i|||<ntid	jot||ƒ}n|i||ƒWq4tj
o}t|‚q4Xntid
|ƒdS(Ns%'output_dir' must be a string or Nones-os-gisc++tenvit=R/sskipping %s (up-to-date)(RKt
_fix_lib_argsRttypeRRt	TypeErrorRRRtjoinRMRNR2R5R6Rt
EXECUTABLER+R*R)tbasenameRDRER#R7RR
RRO(R8ttarget_descRNRRRJt	librariestlibrary_dirstruntime_library_dirstexport_symbolsROR=R>t
build_tempRQtlib_optstld_argstlinkertiRB((s-/usr/lib/python2.6/distutils/unixccompiler.pytlinkÐsF	


cCsd|S(Ns-L((R8tdir((s-/usr/lib/python2.6/distutils/unixccompiler.pytlibrary_dir_option
scCsd|jp
d|jS(Ntgccsg++((R8t
compiler_name((s-/usr/lib/python2.6/distutils/unixccompiler.pyt_is_gcc
scCsÒtiitidƒƒ}tid djo	d|Stid djo.|i|ƒodd|gSdd|gStid	 d
jptid djod|gS|i|ƒo	d
|Sd|SdS(NtCCiR/s-Lishp-uxs-Wl,+ss+sitirix646tosf1V5s-rpaths-Wl,-Rs-R(RRR[Rtget_config_varRDRERk(R8RgR(((s-/usr/lib/python2.6/distutils/unixccompiler.pytruntime_library_dir_options
	(	cCsd|S(Ns-l((R8tlib((s-/usr/lib/python2.6/distutils/unixccompiler.pytlibrary_option,scCsÛ|i|ddƒ}|i|ddƒ}|i|ddƒ}x•|D]}tii||ƒ}tii||ƒ}	tii||ƒ}
tii|	ƒo|	Stii|ƒo|Stii|
ƒo|
SqFWdS(Ntlib_typetsharedtdylibtstatic(RLRRRYtexistsR(R8tdirsRqROtshared_ftdylib_ftstatic_fRgRtRuRv((s-/usr/lib/python2.6/distutils/unixccompiler.pytfind_library_file/s	N(t__name__t
__module__t
compiler_typeRtexecutablesRDREtsrc_extensionst
obj_extensiontstatic_lib_extensiontshared_lib_extensiontdylib_lib_extensiontstatic_lib_formattshared_lib_formattdylib_lib_formatt
exe_extensionRCRIRSRfRhRkRpRrR|(((s-/usr/lib/python2.6/distutils/unixccompiler.pyR$ks@








			6				(t__doc__t__revision__RRDttypesRRt	distutilsRtdistutils.dep_utilRtdistutils.ccompilerRRRtdistutils.errorsRRR	R
RR#R$(((s-/usr/lib/python2.6/distutils/unixccompiler.pyt<module>s"	?

ACC SHELL 2018