Skip to content

Commit 779fc7c

Browse files
committed
Fix AVX2 build error in string_native.c
1 parent 3fe1ede commit 779fc7c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/stdlib/string_native.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
#elif defined(__GNUC__) || defined(__clang__)
2828
// GCC/Clang
2929
#include <immintrin.h>
30-
#define PROX_SIMD_AVX2
30+
#ifdef __AVX2__
31+
#define PROX_SIMD_AVX2
32+
#endif
3133
#endif
3234

3335
extern VM vm;

0 commit comments

Comments
 (0)