1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 04:25:10 -07:00

Only trust clang support for mode(TI) on amd64

This commit is contained in:
Frank Denis 2013-04-27 14:28:18 -07:00
parent bb70f436d0
commit 02f98ce727

View File

@ -225,8 +225,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifndef __GNUC__ #ifndef __GNUC__
# error mode(TI) is a gcc extension # error mode(TI) is a gcc extension
#endif #endif
#if defined(__arm__) || defined(__ARMEL__) #if defined(__clang__) && !defined(__x86_64__)
# error clang doesn't properly compile smult_curve25519_donna_c64.c on arm # error clang doesn't properly compile smult_curve25519_donna_c64.c
#endif #endif
typedef unsigned uint128_t __attribute__((mode(TI))); typedef unsigned uint128_t __attribute__((mode(TI)));
uint128_t x; uint128_t x;