diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-12-02 04:34:25 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-12-02 04:34:25 +0000 |
commit | 921fa088183b86dbaeb35a9c9af17980e7708a54 (patch) | |
tree | 3e61a711de94ebdaa3e9d42af79295ac4cc0394d /numpy/distutils/fcompiler/nag.py | |
parent | bf677ca3b1b02c57da75a302a0f0b5704e3f525f (diff) | |
download | numpy-921fa088183b86dbaeb35a9c9af17980e7708a54.tar.gz |
Try updating version command for NAG compiler.
Diffstat (limited to 'numpy/distutils/fcompiler/nag.py')
-rw-r--r-- | numpy/distutils/fcompiler/nag.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/nag.py b/numpy/distutils/fcompiler/nag.py index 61fab122c..79413dfc1 100644 --- a/numpy/distutils/fcompiler/nag.py +++ b/numpy/distutils/fcompiler/nag.py @@ -26,7 +26,11 @@ class NAGFCompiler(FCompiler): def get_flags_opt(self): return ['-O4'] def get_flags_arch(self): - return ['-target=native'] + version = self.get_version() + if version < '5.1': + return ['-target=native'] + else: + return [''] def get_flags_debug(self): return ['-g','-gline','-g90','-nan','-C'] |