HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/numpy/distutils/fcompiler/__pycache__/nag.cpython-310.pyc
o

���g�
�@s�ddlZddlZddlmZddgZGdd�de�ZGdd�de�ZGdd�de�Zed	krRdd
l	m
Z
e
�d�ddlm
Z
e
d
d�Zee���ee���dSdS)�N)�	FCompiler�NAGFCompiler�NAGFORCompilerc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�BaseNAGFCompilerz"NAG.* Release (?P<version>[^(\s]*)cCs t�|j|�}|r|�d�SdS)N�version)�re�search�version_pattern�group)�self�version_string�m�r�H/usr/local/lib/python3.10/dist-packages/numpy/distutils/fcompiler/nag.py�
version_match
s
zBaseNAGFCompiler.version_matchcC�dgS)Nz-Wl,-sharedr�rrrr�get_flags_linker_so�z$BaseNAGFCompiler.get_flags_linker_socCr)Nz-O4rrrrr�
get_flags_optrzBaseNAGFCompiler.get_flags_optcCsgS)Nrrrrr�get_flags_archszBaseNAGFCompiler.get_flags_archN)�__name__�
__module__�__qualname__r	rrrrrrrrrsrc@sVeZdZdZdZddgddgddgdgdgddgd	gd
�Zdd�Zd
d�Zdd�ZdS)r�nagzNAGWare Fortran 95 Compilerz<F90>�-V�f95�-fixed�ar�-cr�ranlib��version_cmd�compiler_f77�compiler_fix�compiler_f90�	linker_so�archiverr cC�tjdkr	ddgSt�|�S)N�darwinz-unsharedf95�/-Wl,-bundle,-flat_namespace,-undefined,suppress��sys�platformrrrrrrr's

z NAGFCompiler.get_flags_linker_socCs$|��}|r
|dkr
dgSt�|�S)Nz5.1z-target=native)�get_versionrr�rrrrrr+s
zNAGFCompiler.get_flags_archcCsgd�S)N)�-gz-glinez-g90�-nanz-Crrrrr�get_flags_debug1szNAGFCompiler.get_flags_debugN)	rrr�
compiler_type�description�executablesrrr2rrrrrs�
c@sNeZdZdZdZddgddgddgdgdgddgdgd�Zd	d
�Zdd�Zd
S)r�nagforzNAG Fortran Compilerrrrrr r!cCr()Nr)z-unsharedrtsr*r+rrrrrCs

�
z"NAGFORCompiler.get_flags_linker_socCs$|��}|r|dkrgd�Sgd�S)Nz6.1)r0�-ur1�-C=all�-thread_safez-kind=uniquez-Warn=allocationz-Warn=subnormal)r0r1r8r7r9)r.r/rrrr2HszNAGFORCompiler.get_flags_debugN)rrrr3r4r5rr2rrrrr4s�
�__main__)�log�)�customized_fcompilerr6)�compiler)r,r�numpy.distutils.fcompilerr�	compilersrrrr�	distutilsr;�
set_verbosity�numpy.distutilsr=r>�printr.r2rrrr�<module>s

�