2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-24 02:05:12 +01:00

problem fixed? Issue 1104

This commit is contained in:
Thomas Nagy 2012-01-14 13:32:35 +01:00
parent 738d7ac931
commit dd14b122b8

View File

@ -26,13 +26,13 @@ def configure(conf):
"""
try: test_for_compiler = conf.options.check_fc
except AttributeError: conf.fatal("Add options(opt): opt.load('compiler_fc')")
orig = conf.env
for compiler in test_for_compiler.split():
conf.env.stash()
conf.start_msg('Checking for %r (fortran compiler)' % compiler)
try:
conf.start_msg('Checking for %r (fortran compiler)' % compiler)
conf.env = orig.derive()
conf.load(compiler)
except conf.errors.ConfigurationError as e:
conf.env.revert()
conf.end_msg(False)
Logs.debug('compiler_fortran: %r' % e)
else: