U
    ¸mœd*  ã                   @   s–   d dl Z d dlmZmZ d dl mZ d dlmZmZmZ dgZ	d dl
Z
G dd„ deƒZedkr’d dlmZ e d	¡ d d
lmZ eedd� ¡ ƒ dS )é    N)Ú	FCompilerÚdummy_fortran_file)Úplatform)ÚjoinÚdirnameÚnormpathÚArmFlangCompilerc                   @   s®   e Zd ZdZdZdZdZdgZddgddgddd	gddgddd
gddgddœZddgZ	dZ
dZdd„ Zejdd�dd„ ƒZdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd!d"„ ZdS )#r   ÚarmzArm Compilerz&\s*Arm.*version (?P<version>[\d.-]+).*zlib.exeÚarmflangÚ z	--versionz-fPICz-ffixed-formz-sharedÚarz-crN)Zversion_cmdÚcompiler_f77Zcompiler_fixZcompiler_f90Ú	linker_soÚarchiverÚranlibz-DPICz-module c                 C   s   t  | ¡}| dddg¡ |S )NZflangZflangrtiZompstub)r   Úget_librariesÚextend)ÚselfÚopt© r   úV/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/numpy/distutils/fcompiler/arm.pyr   !   s    
zArmFlangCompiler.get_librariesé€   )Úmaxsizec                 C   s6   t  | ¡}t| jd d ƒ}| tt|ddƒƒ¡ |S )z%List of compiler library directories.r   r   z..Úlib)r   Úget_library_dirsr   ÚexecutablesÚappendr   r   )r   r   Z	flang_dirr   r   r   r   &   s    
z!ArmFlangCompiler.get_library_dirsc                 C   s   g S ©Nr   ©r   r   r   r   Ú	get_flags/   s    zArmFlangCompiler.get_flagsc                 C   s   g S r   r   r   r   r   r   Úget_flags_free2   s    zArmFlangCompiler.get_flags_freec                 C   s   dgS )Nz-gr   r   r   r   r   Úget_flags_debug5   s    z ArmFlangCompiler.get_flags_debugc                 C   s   dgS )Nz-O3r   r   r   r   r   Úget_flags_opt8   s    zArmFlangCompiler.get_flags_optc                 C   s   g S r   r   r   r   r   r   Úget_flags_arch;   s    zArmFlangCompiler.get_flags_archc                 C   s   d| S )Nz-Wl,-rpath=%sr   )r   Údirr   r   r   Úruntime_library_dir_option>   s    z+ArmFlangCompiler.runtime_library_dir_option)Ú__name__Ú
__module__Ú__qualname__Úcompiler_typeÚdescriptionZversion_patternZar_exeZpossible_executablesr   Z	pic_flagsZ
c_compilerZmodule_dir_switchr   Ú	functoolsÚ	lru_cacher   r   r    r!   r"   r#   r%   r   r   r   r   r      s2   ù


Ú__main__)Úlogé   )Úcustomized_fcompilerr
   )Úcompiler)ÚsysZnumpy.distutils.fcompilerr   r   r   Úos.pathr   r   r   Z	compilersr+   r   r&   Ú	distutilsr.   Úset_verbosityZnumpy.distutilsr0   ÚprintÚget_versionr   r   r   r   Ú<module>   s   7
