Skip to content

Commit 92802c2

Browse files
committed
improved cross compilation detection
1 parent 8f383e8 commit 92802c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ if test x"$enable_simd" != x"no"; then
264264
# For x86-64 SIMD, g++ >=5 or clang++ >=7 is required
265265
if test x"$host_cpu" = x"x86_64" || test x"$host_cpu" = x"amd64"; then
266266
AC_LANG(C++)
267-
if test x"$host_cpu" = x"$build_cpu"; then
267+
if test x"$host" = x"$build"; then
268268
AC_RUN_IFELSE([AC_LANG_PROGRAM([SIMD_X86_64_TEST],[[if (test_ssse3(42) != 42 || test_sse2(42) != 42 || test_avx2(42) != 42) exit(1);]])],
269269
[CXX_OK=yes],[CXX_OK=no])
270270
else

0 commit comments

Comments
 (0)