a ;jg @sddlZddlZddlmZddgZGdddeZGdddeZGdddeZed krdd l m Z e d dd l m Z e d dZeeeedS)N) FCompiler NAGFCompilerNAGFORCompilerc@s0eZdZdZddZddZddZdd Zd S) BaseNAGFCompilerz"NAG.* Release (?P[^(\s]*)cCs$t|j|}|r|dSdSdS)Nversion)researchversion_patterngroup)selfversion_stringmrG/usr/local/lib/python3.9/site-packages/numpy/distutils/fcompiler/nag.py version_match s zBaseNAGFCompiler.version_matchcCsdgS)Nz -Wl,-sharedrr rrrget_flags_linker_sosz$BaseNAGFCompiler.get_flags_linker_socCsdgS)Nz-O4rrrrr get_flags_optszBaseNAGFCompiler.get_flags_optcCsgS)Nrrrrrget_flags_archszBaseNAGFCompiler.get_flags_archN)__name__ __module__ __qualname__r rrrrrrrrrs rc@sVeZdZdZdZddgddgddgdgdgddgd gd Zd d Zd dZddZdS)rZnagzNAGWare Fortran 95 Compilerz-VZf95-fixedar-crranlibZ version_cmdZ compiler_f77Z compiler_fixZ compiler_f90 linker_soarchiverrcCstjdkrddgSt|S)Ndarwinz -unsharedf95/-Wl,-bundle,-flat_namespace,-undefined,suppresssysplatformrrrrrrr's z NAGFCompiler.get_flags_linker_socCs(|}|r|dkrdgSt|SdS)Nz5.1z-target=native) get_versionrrr rrrrr+s zNAGFCompiler.get_flags_archcCsgdS)N)-gz-glinez-g90-nanz-Crrrrrget_flags_debug1szNAGFCompiler.get_flags_debugN) rrr compiler_type description executablesrrr)rrrrrs c@sNeZdZdZdZddgddgddgdgdgddgdgdZd d Zd d Zd S)rnagforzNAG Fortran CompilerrrrrrrcCstjdkrddgSt|S)Nr z -unsharedrtsr!r"rrrrrCs  z"NAGFORCompiler.get_flags_linker_socCs(|}|r|dkrgdSgdSdS)Nz6.1)r'-ur(-C=all -thread_safez -kind=uniquez-Warn=allocationz-Warn=subnormal)r'r(r/r.r0)r%r&rrrr)Hs zNAGFORCompiler.get_flags_debugN)rrrr*r+r,rr)rrrrr4s __main__)log)customized_fcompilerr-)compiler)r#rZnumpy.distutils.fcompilerrZ compilersrrrr distutilsr2 set_verbosityZnumpy.distutilsr4r5printr%r)rrrrs