1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
U
O±dqã@s–ddlZddlmZmZddlmZddlmZmZmZdgZ    ddl
Z
Gdd„deƒZ e dkr’ddl mZe d    ¡dd
lmZeed d  ¡ƒdS) éN)Ú    FCompilerÚdummy_fortran_file)Úplatform)ÚjoinÚdirnameÚnormpathÚArmFlangCompilerc@s®eZdZdZdZdZdZdgZddgddgddd    gddgddd
gd d gd dœZddgZ    dZ
dZ dd„Z e jdddd„ƒZdd„Zdd„Zdd„Zdd„Zdd „Zd!d"„Zd S)#rÚarmz Arm Compilerz&\s*Arm.*version (?P<version>[\d.-]+).*zlib.exeÚarmflangÚz    --versionz-fPICz -ffixed-formz-sharedÚarz-crN)Z version_cmdÚ compiler_f77Z compiler_fixZ compiler_f90Ú    linker_soÚarchiverZranlibz-DPICz-module cCst |¡}| dddg¡|S)NZflangZflangrtiZompstub)rÚ get_librariesÚextend)ÚselfÚopt©rúTd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/distutils/fcompiler/arm.pyr!s
zArmFlangCompiler.get_librariesé€)ÚmaxsizecCs6t |¡}t|jddƒ}| tt|ddƒƒ¡|S)z%List of compiler library directories.r rz..Úlib)rÚget_library_dirsrÚ executablesÚappendrr)rrZ    flang_dirrrrr&s
z!ArmFlangCompiler.get_library_dirscCsgS©Nr©rrrrÚ    get_flags/szArmFlangCompiler.get_flagscCsgSrrrrrrÚget_flags_free2szArmFlangCompiler.get_flags_freecCsdgS)Nz-grrrrrÚget_flags_debug5sz ArmFlangCompiler.get_flags_debugcCsdgS)Nz-O3rrrrrÚ get_flags_opt8szArmFlangCompiler.get_flags_optcCsgSrrrrrrÚget_flags_arch;szArmFlangCompiler.get_flags_archcCsd|S)Nz -Wl,-rpath=%sr)rÚdirrrrÚruntime_library_dir_option>sz+ArmFlangCompiler.runtime_library_dir_option)Ú__name__Ú
__module__Ú __qualname__Ú compiler_typeÚ descriptionZversion_patternZar_exeZpossible_executablesrZ    pic_flagsZ
c_compilerZmodule_dir_switchrÚ    functoolsÚ    lru_cacherrrr r!r"r$rrrrr s2ù
 
 
Ú__main__)Úlogé)Úcustomized_fcompilerr
)Úcompiler)ÚsysZnumpy.distutils.fcompilerrrrÚos.pathrrrZ    compilersr*rr%Ú    distutilsr-Ú set_verbosityZnumpy.distutilsr/ÚprintÚ get_versionrrrrÚ<module>s 7