mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
immintrin.h is only used on amd64 and i386. In file included from /wrkdirs/usr/ports/devel/fccf/work/fccf-0.6.0/source/sse2_strstr.cpp:5: In file included from /usr/lib/clang/13.0.0/include/immintrin.h:17: /usr/lib/clang/13.0.0/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'? __builtin_ia32_emms(); ^
12 lines
306 B
C++
12 lines
306 B
C++
--- source/searcher.hpp.orig 2022-08-27 09:05:01 UTC
|
|
+++ source/searcher.hpp
|
|
@@ -18,7 +18,9 @@
|
|
#define FMT_HEADER_ONLY 1
|
|
#include <fmt/color.h>
|
|
#include <fmt/core.h>
|
|
+#if defined(__x86_64__) || defined (__i386__)
|
|
#include <immintrin.h>
|
|
+#endif
|
|
#include <sse2_strstr.hpp>
|
|
#include <thread_pool.hpp>
|
|
|