diff options
author | lloyd <[email protected]> | 2011-05-24 12:59:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-05-24 12:59:59 +0000 |
commit | 12d4fcffc291c7e9efcb811e8d4d33d34f5b7cb9 (patch) | |
tree | e25a8871362eb1cafe0966cc17dc6255662d5cc6 /configure.py | |
parent | 6bf99bb01aac7266ec6f3c5556fc5177e0f881ad (diff) |
Split the SIMD implementations into their own modules and choose one
at config time.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/configure.py b/configure.py index 1c2bd211b..8294b25fa 100755 --- a/configure.py +++ b/configure.py @@ -1249,15 +1249,16 @@ def choose_modules_to_use(modules, archinfo, options): logging.info('Skipping, %s - %s' % ( reason, ' '.join(disabled_mods))) - logging.info('Using MP module ' + - ' '.join(filter(lambda m: m.startswith('mp_'), to_load))) - - logging.debug('Loading modules %s', ' '.join(sorted(to_load))) - - for mod in to_load: + for mod in sorted(to_load): + if mod.startswith('mp_'): + logging.info('Using MP module ' + mod) + if mod.startswith('simd_') and mod != 'simd_engine': + logging.info('Using SIMD module ' + mod) if modules[mod].comment: logging.info('%s: %s' % (mod, modules[mod].comment)) + logging.debug('Loading modules %s', ' '.join(sorted(to_load))) + return [modules[mod] for mod in to_load] """ @@ -1644,9 +1645,7 @@ def main(argv = None): if options.compiler is None: if options.os == 'windows': - if have_program('cl'): - options.compiler = 'msvc' - elif have_program('g++'): + if have_program('g++') and not have_program('cl'): options.compiler = 'gcc' else: options.compiler = 'msvc' |