diff options
author | lloyd <[email protected]> | 2010-01-04 15:10:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-01-04 15:10:15 +0000 |
commit | addb797aad286615af7aa16aa854f57e55d5af4f (patch) | |
tree | 333a645483c78e00e880c240531cafdc62e77f7f /configure.py | |
parent | 2bf08f8cd9524287232491173e52a75a0269b3df (diff) |
Make ssse3/aes_ni depend on sse2; --disable-sse2 turns off all of then
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 8eedf64b1..3dc360f12 100755 --- a/configure.py +++ b/configure.py @@ -315,6 +315,27 @@ def process_command_line(args): options.enable_isa_extns = parse_multiple_enable(options.enable_isa_extns) options.disable_isa_extns = parse_multiple_enable(options.disable_isa_extns) + def enabled_or_disabled_isa(isa): + if isa in options.enable_isa_extns: + return True + if isa in options.disable_isa_extns: + return True + return False + + isa_dependencies = { + 'ssse3': 'sse2', + 'aes_ni': 'sse2' + } + + if 'sse2' in options.disable_isa_extns: + sse2_deps = ['ssse3', 'aes_ni'] + + for isa in sse2_deps: + if not enabled_or_disabled_isa(isa): + options.disable_isa_extns.append(isa) + + print options.disable_isa_extns + return options """ |