diff options
-rw-r--r-- | numpy/distutils/fcompiler/nag.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/nag.py b/numpy/distutils/fcompiler/nag.py index 8a58aaae4..4aca48450 100644 --- a/numpy/distutils/fcompiler/nag.py +++ b/numpy/distutils/fcompiler/nag.py @@ -27,7 +27,7 @@ class NAGFCompiler(FCompiler): return ['-O4'] def get_flags_arch(self): version = self.get_version() - if version < '5.1': + if version and version < '5.1': return ['-target=native'] else: return [''] |