Viewing File: /opt/alt/python-internal/lib64/python3.11/distutils/__pycache__/unixccompiler.cpython-311.pyc



gh;dZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZddlm
Z
mZmZmZddlmZejdkrddlZGd	d
e	ZdS)a9distutils.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'
N)	sysconfig)newer)	CCompilergen_preprocess_optionsgen_lib_options)DistutilsExecErrorCompileErrorLibError	LinkError)logdarwinc	eZdZdZddgdgdgddgdgddgddZejddd	krd
ged
<gdZdZd
Z	dZ
dZdZdxZ
xZZeZejdkrdZfdZ		ddZdZ	d dZ				d!dZdZdZdZdZd"dZxZS)#
UnixCCompilerunixNccz-sharedarz-cr)preprocessorcompilercompiler_socompiler_cxx	linker_so
linker_exearchiverranlibr
r)z.cz.Cz.ccz.cxxz.cppz.mz.oz.az.soz.dylibz.tbdzlib%s%scygwinz.exect|||\}}}tjd}|r||vr|||||fS)z'Remove standard library path from rpathLIBDIR)super
_fix_lib_argsrget_config_varremove)self	librarieslibrary_dirsruntime_library_dirslibdir	__class__s     D/opt/alt/python-internal/lib64/python3.11/distutils/unixccompiler.pyr zUnixCCompiler._fix_lib_argsUsq8=8M8M|%99;9;5	<!5)(33	0V/C%C%C ''///,(<<<c|d||}|\}}}t||}	|j|	z}
|r|
d|g|r||
dd<|r|
||
||js|t
||rm|r2|tj	
|	||
dS#t$r}t|d}~wwxYwdS)N-or)_fix_compile_argsrrextendappendforcermkpathospathdirnamespawnrr	)r#sourceoutput_filemacrosinclude_dirs
extra_preargsextra_postargs
fixed_argsignorepp_optspp_argsmsgs            r)
preprocesszUnixCCompiler.preprocess^s;++D&,GG
'1$(>>#g-	0NND+.///	('GBQBK	+NN>***v:	(,fk0J0J,
:BGOOK88999
(

7#####%
(
(
("3'''
(-,sC++
D	5DD	c|j}tjdkrtj|||z}	|||z|d|gz|zdS#t$r}t|d}~wwxYw)Nr
r,)rsysplatform_osx_supportcompiler_fixupr5rr	)	r#objsrcextcc_argsr;r>rr@s	         r)_compilezUnixCCompiler._compilexs&<8##&5k4;n4LNNK	$JJ{W,T3/??%&
'
'
'
'
'!	$	$	$s###	$s!A
A2A--A2rc|||\}}|||}|||r|tj|||j|gz|z|j	z|j
rB	||j
|gzdS#t$r}t|d}~wwxYwdStjd|dS)N)
output_dirskipping %s (up-to-date))_fix_object_argslibrary_filename
_need_linkr1r2r3r4r5robjectsrrr
rdebug)r#rRoutput_libnamerMrStarget_langoutput_filenamer@s        r)create_static_libzUnixCCompiler.create_static_libs,"33GZHH
!!.Z!HH	??7O44	CKK88999JJt}'()!%.
/
/
/{
((JJt{o->>?????)((("3--'(
(
(
I0/BBBBBs*C


C(C##C(c|||\}}||||}|\}}}t||||}t|ttdfst
d| tj	||}|
||r||jz|zd|gz}|	rdg|dd<|
r|
|dd<|r|||
tj|	|tjkr|jdd}n|jdd}|
dkr|jrd}tj|ddkrd}d||vr|dz
}d||vtj||d	krd}nd}|j||||z<t*jd
krt/j||}|||zdS#t4$r}t7|d}~wwxYwt9jd|dS)Nz%'output_dir' must be a string or Noner,z-grzc++env=	ld_so_aixr
rN)rOr r
isinstancestrtype	TypeErrorr2r3joinrQrRr.r1r4r
EXECUTABLErrrbasenamerCrDrErFr5rrrrS)r#target_descrRrVrMr$r%r&export_symbolsrSr:r;
build_temprUr<lib_optsld_argslinkerioffsetr@s                     r)linkzUnixCCompiler.links
#33GZHH''	<(<>>
8B5	<!5"47K#,..*sDJJ&788	ECDDD! gll:GGO??7O44+	C- #'"9:G
%#f
,+
/~...KK88999
%)"666!_QQQ/FF!^AAA.F%''D,='Aw''q	22e;;!VAY..FA"VAY..w''q	22kAA"#!"'+'8';F1V8$<8++)8IIF

6G+,,,,,%
%
%
%nn$
%
I0/BBBBBs$DH&&
I0H??Icd|zS)N-L)r#dirs  r)library_dir_optionz UnixCCompiler.library_dir_optionczr*c:tfddDS)Nc3 K|]}|vV	dS)Nro).0name
compiler_names  r)	<genexpr>z(UnixCCompiler._is_gcc.<locals>.<genexpr>s(MMT4=(MMMMMMr*)gcczg++clang)any)r#rws `r)_is_gcczUnixCCompiler._is_gccs'MMMM5LMMMMMMr*ctjtjd}t
jdddkrd|zSt
jdddkrd|zSt
jddd	kr#||rd
d|zgSdd|zgS||r"tjdd
krd|zSd|zSd|zS)NCCrr
rnfreebsdz-Wl,-rpath=zhp-uxz-Wl,+sz+sGNULDyesz-Wl,--enable-new-dtags,-Rz-Wl,-Rz-R)r2r3rcrr!rCrDr|)r#rprs   r)runtime_library_dir_optionz(UnixCCompiler.runtime_library_dir_options7##I$<T$B$BCC<x''#:
\"1"

*
* 3&&
\"1"

(
(||H%%
. $*--$*%%||H%%
"
+G44==7<<#c>)
cz!r*cd|zS)Nz-lro)r#libs  r)library_optionzUnixCCompiler.library_optionrrr*c||d}||d}||d}||d}tjdkrgtjd}tjd|}	|	'tjtjd	}
n|		d
}
|D]}tj||}tj||}
tj||}tj||}tjdkr|
ds*|
dr|
d
stj|
|d
d|}tj|
|d
d|}
tj|
|d
d|}tj|
|d
d|}tj|
r|
cStj|r|cStj|r|cStj|r|cSdS)Nshared)lib_typedylib
xcode_stubstaticr
CFLAGSz-isysroot\s*(\S+)r~rZz/System/z/usr/z/usr/local/)rPrCrDrr!researchrE_default_sysrootgroupr2r3ra
startswithexists)r#dirsrrSshared_fdylib_fxcode_stub_fstatic_fcflagsmsysrootrprrrrs                r)find_library_filezUnixCCompiler.find_library_files~((x(@@''g'>>,,S<,HH((x(@@<8##&-h77F	.77Ay&7	8PQU8V8VWW''!**		CW\\#x00FGLLg..EW\\#x00Fc<88J|x''z**(w''(03}0M0M(gs122wAAWc!""gw??gs122wAAW\\'3qrr7LII
w~~e$$

++
!!!!''



''




tr*)NNNNN)NrN)
NNNNNrNNNN)r)__name__
__module____qualname__
compiler_typeexecutablesrCrDsrc_extensions
obj_extensionstatic_lib_extensionshared_lib_extensiondylib_lib_extensionxcode_stub_lib_extensionstatic_lib_formatshared_lib_formatdylib_lib_formatxcode_stub_lib_format
exe_extensionr rArKrWrlrqr|rrr
__classcell__)r(s@r)rr-sM%)%)F%)F%)F%)9$5%)F%)5M$(K|BQB8##!)
H:99NM "%?HHH),<,
|x
=====;?IM((((4	$	$	$AECCCC6:>599=?C	<C<C<C<CDNNN("("("T????????r*r)__doc__r2rCr	distutilsrdistutils.dep_utilrdistutils.ccompilerrrrdistutils.errorsrr	r
rrrDrError*r)<module>rs0

$$$$$$8888888888;;;;;;;;;;;;<8$eeeeeIeeeeer*
Back to Directory File Manager