diff options
author | lloyd <[email protected]> | 2013-03-27 13:21:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-03-27 13:21:24 +0000 |
commit | e84084fd4a41a6656c75f6dff900872cc899df8d (patch) | |
tree | d2589a93e29350d95a9e8ab9cae539be6a4e5f6e /configure.py | |
parent | 1c5b013cb3b08f4e1dffce1688a224d42ea85fa7 (diff) |
Make it possible to warn in info files (already have this on trunk)
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.py b/configure.py index b606e062d..a86530f29 100755 --- a/configure.py +++ b/configure.py @@ -544,7 +544,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': [], @@ -604,6 +604,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 @@ -1321,6 +1326,8 @@ def choose_modules_to_use(modules, archinfo, options): logging.info('Using SIMD module ' + mod) 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))) |