git: b33c627183c0 - main - devel/fccf: fix build on non-x86

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 09:18:02 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b33c627183c00a7c7ea599d54c066109ee7c09c5

commit b33c627183c00a7c7ea599d54c066109ee7c09c5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-08-27 09:16:27 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-08-27 09:17:54 +0000

    devel/fccf: fix build on non-x86
    
    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();
        ^
---
 devel/fccf/files/patch-source_searcher.hpp     | 12 ++++++++++++
 devel/fccf/files/patch-source_sse2__strstr.cpp | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/devel/fccf/files/patch-source_searcher.hpp b/devel/fccf/files/patch-source_searcher.hpp
new file mode 100644
index 000000000000..dda6fa68bcdb
--- /dev/null
+++ b/devel/fccf/files/patch-source_searcher.hpp
@@ -0,0 +1,12 @@
+--- 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>
+ 
diff --git a/devel/fccf/files/patch-source_sse2__strstr.cpp b/devel/fccf/files/patch-source_sse2__strstr.cpp
new file mode 100644
index 000000000000..d16b6f745b5d
--- /dev/null
+++ b/devel/fccf/files/patch-source_sse2__strstr.cpp
@@ -0,0 +1,12 @@
+--- source/sse2_strstr.cpp.orig	2022-08-27 09:05:40 UTC
++++ source/sse2_strstr.cpp
+@@ -2,7 +2,9 @@
+ #include <cstring>
+ 
+ #include <ctype.h>
++#if defined(__x86_64__) || defined (__i386__)
+ #include <immintrin.h>
++#endif
+ #include <sse2_strstr.hpp>
+ 
+ #define FORCE_INLINE inline __attribute__((always_inline))