diff options
author | lloyd <[email protected]> | 2010-07-09 21:39:21 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-07-09 21:39:21 +0000 |
commit | 269b51a1aca30573befaf6f1fda9402f3b5d4dab (patch) | |
tree | 6ed92c694bde00ed5288bbc901ba10bb81288267 | |
parent | 4d1fe920cd6aa1c3af61cf8232297413908d31de (diff) |
Warn if no info files for compilers, CPUs or OSes get loaded; this is
indicative of either a busted tree or some kind of path problem.
-rwxr-xr-x | configure.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.py b/configure.py index d93db2b83..24938c681 100755 --- a/configure.py +++ b/configure.py @@ -1160,17 +1160,21 @@ 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)) return (modules, archinfo, ccinfo, osinfo) |