a
    iÝEb»  ã                   @   sª   d dl mZmZmZ 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 )é    )ÚdivisionÚabsolute_importÚprint_functionN)Ú	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g d	¢ddgg d
¢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	--versionú-fPIC)r   r   z-ffixed-form)r   r   z-sharedÚarz-crN)Zversion_cmdÚcompiler_f77Zcompiler_fixZcompiler_f90Ú	linker_soÚarchiverZranlibz-DPICz-module c                 C   s   t  | ¡}| g d¢¡ |S )N)ZflangZflangrtiZompstub)r   Úget_librariesÚextend)ÚselfÚopt© r   ú]/home/ja/django-apps/lartica_env/lib/python3.9/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_flags1   s    zArmFlangCompiler.get_flagsc                 C   s   g S r    r   r!   r   r   r   Úget_flags_free4   s    zArmFlangCompiler.get_flags_freec                 C   s   dgS )Nz-gr   r!   r   r   r   Úget_flags_debug7   s    z ArmFlangCompiler.get_flags_debugc                 C   s   dgS )Nz-O3r   r!   r   r   r   Úget_flags_opt:   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)Ú
__future__r   r   r   ÚsysZnumpy.distutils.fcompilerr   r   r   Úos.pathr   r	   r
   Z	compilersr.   r   r)   Ú	distutilsr1   Úset_verbosityZnumpy.distutilsr3   ÚprintÚget_versionr   r   r   r   Ú<module>   s   7
