git: e41fd79f6285 - main - devel/highway: unbreak with clang 16 on i386 after bcdc19e0fb16

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 17 Aug 2023 03:01:11 UTC
The branch main has been updated by jbeich:

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

commit e41fd79f62853ce8748f8c437ca407003d81da3a
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-08-17 02:58:43 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-08-17 03:00:27 +0000

    devel/highway: unbreak with clang 16 on i386 after bcdc19e0fb16
    
    In file included from hwy/nanobenchmark.cc:27:
    In file included from hwy/robust_statistics.h:24:
    hwy/base.h:386:19: error: _Float16 is not supported on this target
    using float16_t = _Float16;
                      ^
    
    Reported by:    pkg-fallout
---
 devel/highway/files/patch-hwy_base.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/devel/highway/files/patch-hwy_base.h b/devel/highway/files/patch-hwy_base.h
new file mode 100644
index 000000000000..bac2d6a5c8df
--- /dev/null
+++ b/devel/highway/files/patch-hwy_base.h
@@ -0,0 +1,13 @@
+https://github.com/google/highway/issues/1658
+
+--- hwy/base.h.orig	2023-08-11 13:54:08 UTC
++++ hwy/base.h
+@@ -381,7 +381,7 @@ using float16_t = __fp16;
+ //    which is missing __extendhfsf2.
+ #elif (                                                                        \
+     (HWY_ARCH_RVV && defined(__riscv_zvfh) && HWY_COMPILER_CLANG) ||           \
+-    (HWY_ARCH_X86 && ((HWY_COMPILER_CLANG >= 1600 && !HWY_COMPILER_CLANGCL) || \
++    (HWY_ARCH_X86_64 && ((HWY_COMPILER_CLANG >= 1600 && !HWY_COMPILER_CLANGCL) || \
+                       HWY_COMPILER_GCC_ACTUAL >= 1200)))
+ using float16_t = _Float16;
+ // 3) Otherwise emulate