Module Name: src
Committed By: riastradh
Date: Wed Jun 5 15:12:03 UTC 2024
Modified Files:
src/external/mit/xorg/lib: driver.mk
Log Message:
Mesa: Build u_format_unpack_neon.c with -mfpu=neon on clang arm32.
Attempting to address this failure in the clang build, without
breaking anything that's not clang and not arm32:
In file included from
/home/source/ab/HEAD-llvm/xsrc/external/mit/MesaLib/dist/src/util/format/u_format_unpack_neon.c:35:
/home/builds/ab/HEAD-llvm/evbarm-earmv6hf/202406041020Z-obj/home/source/ab/HEAD-llvm/src/external/apache2/llvm/include/arm_neon.h:32:2:
error: "NEON support not enabled"
#error "NEON support not enabled"
^
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/mit/xorg/lib/driver.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/mit/xorg/lib/driver.mk
diff -u src/external/mit/xorg/lib/driver.mk:1.6 src/external/mit/xorg/lib/driver.mk:1.7
--- src/external/mit/xorg/lib/driver.mk:1.6 Wed Nov 22 17:48:35 2023
+++ src/external/mit/xorg/lib/driver.mk Wed Jun 5 15:12:03 2024
@@ -1,4 +1,4 @@
-# $NetBSD: driver.mk,v 1.6 2023/11/22 17:48:35 rjs Exp $
+# $NetBSD: driver.mk,v 1.7 2024/06/05 15:12:03 riastradh Exp $
# stuff both dri and gallium drivers need.
@@ -82,6 +82,9 @@ SRCS.format= \
u_format_zs.c \
u_format_table.c
+CPUFLAGS.u_format_unpack_neon.c+= \
+ ${${MACHINE_CPU} == "arm" && ${ACTIVE_CC} == "clang":?-mfpu=neon:}
+
.for _f in ${SRCS.format}
CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/src/util/format
CPPFLAGS.${_f} += -I${X11SRCDIR.Mesa}/../src/util/format