1
# http://g95.sourceforge.net/
6
from numpy.distutils.cpuinfo import cpu
7
from numpy.distutils.fcompiler import FCompiler
9
class G95FCompiler(FCompiler):
12
version_pattern = r'G95.*\(experimental\) \(g95!\) (?P<version>.*)\).*'
15
'version_cmd' : ["g95", "--version"],
16
'compiler_f77' : ["g95", "-ffixed-form"],
17
'compiler_fix' : ["g95", "-ffixed-form"],
18
'compiler_f90' : ["g95"],
19
'linker_so' : ["g95","-shared"],
20
'archiver' : ["ar", "-cr"],
24
module_dir_switch = '-fmod='
25
module_include_switch = '-I'
28
return ['-fno-second-underscore']
29
def get_flags_opt(self):
31
def get_flags_debug(self):
34
if __name__ == '__main__':
35
from distutils import log
37
from numpy.distutils.fcompiler import new_fcompiler
38
#compiler = new_fcompiler(compiler='g95')
39
compiler = G95FCompiler()
41
print compiler.get_version()