summaryrefslogtreecommitdiff
path: root/third_party/waf/waflib/Tools/gfortran.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/waf/waflib/Tools/gfortran.py')
-rw-r--r--third_party/waf/waflib/Tools/gfortran.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/third_party/waf/waflib/Tools/gfortran.py b/third_party/waf/waflib/Tools/gfortran.py
index 09eeee8b83c..12cff7106d2 100644
--- a/third_party/waf/waflib/Tools/gfortran.py
+++ b/third_party/waf/waflib/Tools/gfortran.py
@@ -5,7 +5,7 @@
#! /usr/bin/env python
# encoding: utf-8
# DC 2008
-# Thomas Nagy 2016 (ita)
+# Thomas Nagy 2016-2018 (ita)
import re
from waflib import Utils
@@ -54,8 +54,10 @@ def get_gfortran_version(conf, fc):
version_re = re.compile(r"GNU\s*Fortran", re.I).search
cmd = fc + ['--version']
out, err = fc_config.getoutput(conf, cmd, stdin=False)
- if out: match = version_re(out)
- else: match = version_re(err)
+ if out:
+ match = version_re(out)
+ else:
+ match = version_re(err)
if not match:
conf.fatal('Could not determine the compiler type')
@@ -92,3 +94,4 @@ def configure(conf):
conf.fc_add_flags()
conf.gfortran_flags()
conf.gfortran_modifier_platform()
+ conf.check_gfortran_o_space()