aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-07-09 21:44:14 +0000
committerlloyd <[email protected]>2010-07-09 21:44:14 +0000
commit8fe58b0e87b3fe43ff2fa113e739ca24bcd8052c (patch)
tree8a72ce45fa1877d3ccd662350021133083ee9705
parentf2f6db7046abf7a5ab55eed72a68bdc1716b2351 (diff)
If we fail to load any CC/OS/CPU info files, print a warning; this
typically indicates a problem with either the tree, with Python, or with path handling, so make the problem loud and obvious.
-rwxr-xr-xconfigure.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index 6ea769fd0..8ef7ab5fb 100755
--- a/configure.py
+++ b/configure.py
@@ -905,15 +905,22 @@ def load_info_files(options):
archinfo = dict([(form_name(info), ArchInfo(info))
for info in list_files_in_build_data('arch')])
- logging.debug('Loaded %d CPU info files' % (len(archinfo)))
osinfo = dict([(form_name(info), OsInfo(info))
for info in list_files_in_build_data('os')])
- logging.debug('Loaded %d OS info files' % (len(osinfo)))
ccinfo = dict([(form_name(info), CompilerInfo(info))
for info in list_files_in_build_data('cc')])
- logging.debug('Loaded %d compiler info files' % (len(ccinfo)))
+
+ def info_file_load_report(type, num):
+ if num > 0:
+ logging.debug('Loaded %d %s info files' % (num, type))
+ else:
+ logging.warning('Failed to load any %s info files' % (type))
+
+ info_file_load_report('CPU', len(archinfo));
+ info_file_load_report('OS', len(osinfo))
+ info_file_load_report('compiler', len(ccinfo))
if 'defaults' in osinfo:
del osinfo['defaults'] # FIXME (remove the file)