From 921fa088183b86dbaeb35a9c9af17980e7708a54 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 2 Dec 2006 04:34:25 +0000 Subject: Try updating version command for NAG compiler. --- numpy/distutils/fcompiler/nag.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'numpy') 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'] -- cgit v1.2.1