o
    ʩZh
                     @   s   d dl Z d dlZd dlmZ ddgZG dd deZG dd deZG dd deZed	krRd d
l	m
Z
 e
d d dlmZ eddZee  ee  dS dS )    N)	FCompilerNAGFCompilerNAGFORCompilerc                   @   s0   e Zd ZdZdd Zdd Zdd Zdd	 Zd
S )BaseNAGFCompilerz"NAG.* Release (?P<version>[^(\s]*)c                 C   s    t | j|}|r|dS d S )Nversion)researchversion_patterngroup)selfversion_stringm r   T/var/www/html/lang_env/lib/python3.10/site-packages/numpy/distutils/fcompiler/nag.pyversion_match
   s   
zBaseNAGFCompiler.version_matchc                 C      dgS )Nz-Wl,-sharedr   r   r   r   r   get_flags_linker_so      z$BaseNAGFCompiler.get_flags_linker_soc                 C   r   )Nz-O4r   r   r   r   r   get_flags_opt   r   zBaseNAGFCompiler.get_flags_optc                 C   s   g S )Nr   r   r   r   r   get_flags_arch   s   zBaseNAGFCompiler.get_flags_archN)__name__
__module____qualname__r	   r   r   r   r   r   r   r   r   r      s    r   c                   @   sV   e Zd ZdZdZddgddgddgdgdgddgd	gd
Zdd Zdd Zdd ZdS )r   ZnagzNAGWare Fortran 95 Compilerz<F90>-VZf95-fixedar-crranlibZversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90Z	linker_soZarchiverr   c                 C      t jdkr	ddgS t| S )Ndarwinz-unsharedf95/-Wl,-bundle,-flat_namespace,-undefined,suppresssysplatformr   r   r   r   r   r   r   '   s   

z NAGFCompiler.get_flags_linker_soc                 C   s$   |   }|r|dk rdgS t| S )Nz5.1z-target=native)get_versionr   r   r   r   r   r   r   r   +   s   
zNAGFCompiler.get_flags_archc                 C   s   g dS )N)-gz-glinez-g90-nanz-Cr   r   r   r   r   get_flags_debug1   s   zNAGFCompiler.get_flags_debugN)	r   r   r   compiler_typedescriptionexecutablesr   r   r*   r   r   r   r   r      s    
c                   @   sN   e Zd ZdZdZddgddgddgdgdgddgdgdZd	d
 Zdd ZdS )r   nagforzNAG Fortran Compilerr   r   r   r   r   r   c                 C   r    )Nr!   z-unsharedrtsr"   r#   r   r   r   r   r   C   s
   

z"NAGFORCompiler.get_flags_linker_soc                 C   s$   |   }|r|dkrg dS g dS )Nz6.1)r(   -ur)   -C=all-thread_safez-kind=uniquez-Warn=allocationz-Warn=subnormal)r(   r)   r0   r/   r1   )r&   r'   r   r   r   r*   H   s   zNAGFORCompiler.get_flags_debugN)r   r   r   r+   r,   r-   r   r*   r   r   r   r   r   4   s    
__main__)log   )customized_fcompilerr.   )compiler)r$   r   Znumpy.distutils.fcompilerr   Z	compilersr   r   r   r   	distutilsr3   Zset_verbosityZnumpy.distutilsr5   r6   printr&   r*   r   r   r   r   <module>   s    

