diff options
author | lloyd <[email protected]> | 2009-11-04 18:07:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-04 18:07:24 +0000 |
commit | 9a93fa54a9af6ebc28fafba20af3d78df43c12c8 (patch) | |
tree | a8ec190f3bcbfc02d5e5f3e0bc9c9949329165be /configure.py | |
parent | e4e19f655ec04cd195bfd6d0667c522316301912 (diff) |
Set BOTAN_TARGET_CPU_HAS_SSE2 macro if amd64. Not set at all for any 32-bit
x86 currently. This should be fixed. But it's an improvement over having
to always set it manually, at least.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 2e0c31fe2..93192abdd 100755 --- a/configure.py +++ b/configure.py @@ -463,6 +463,9 @@ class ArchInfo(object): logging.info('Assuming unaligned memory access works on this CPU') macros.append('TARGET_UNALIGNED_LOADSTOR_OK %d' % (unaligned_ok)) + if self.basename == 'amd64': + macros.append('TARGET_CPU_HAS_SSE2') + return macros class CompilerInfo(object): |