summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/nag.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/fcompiler/nag.py')
-rw-r--r--numpy/distutils/fcompiler/nag.py6
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']