aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 31b55756d..32c8bfab5 100755
--- a/configure.py
+++ b/configure.py
@@ -536,7 +536,7 @@ class ModuleInfo(object):
lex_me_harder(infofile, self,
['source', 'header:internal', 'header:public',
'requires', 'os', 'arch', 'cc', 'libs',
- 'comment'],
+ 'comment', 'warning'],
{
'load_on': 'auto',
'define': [],
@@ -593,6 +593,11 @@ class ModuleInfo(object):
else:
self.comment = None
+ if self.warning != []:
+ self.warning = ' '.join(self.warning)
+ else:
+ self.warning = None
+
def sources(self):
return self.source
@@ -1292,8 +1297,12 @@ def choose_modules_to_use(modules, archinfo, options):
logging.info('Using MP module ' + mod)
if mod.startswith('simd_') and mod != 'simd_engine':
logging.info('Using SIMD module ' + mod)
+
+ for mod in sorted(to_load):
if modules[mod].comment:
logging.info('%s: %s' % (mod, modules[mod].comment))
+ if modules[mod].warning:
+ logging.warning('%s: %s' % (mod, modules[mod].warning))
logging.debug('Loading modules %s', ' '.join(sorted(to_load)))