git: 1114bd2b25f8 - main - graphics/alizams: fix build on non-amd64 non-i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Nov 2022 15:03:12 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=1114bd2b25f8f6bda30c70870b4d0c3a041df66d commit 1114bd2b25f8f6bda30c70870b4d0c3a041df66d Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-11-27 14:38:43 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-11-27 14:38:43 +0000 graphics/alizams: fix build on non-amd64 non-i386 In file included from /wrkdirs/usr/ports/graphics/alizams/work/AlizaMS-1.8.3-34-ge36859b/vectormath/sse/vectormath.h:40: In file included from /usr/lib/clang/13.0.0/include/xmmintrin.h:13: /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(); ^ --- graphics/alizams/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/graphics/alizams/Makefile b/graphics/alizams/Makefile index 901d715a6ef4..e4da26107e40 100644 --- a/graphics/alizams/Makefile +++ b/graphics/alizams/Makefile @@ -28,5 +28,11 @@ CMAKE_ARGS= -DALIZA_QT_VERSION=5 CXXFLAGS_i386= -msse2 # to fix this error: always_inline function '_mm_set1_ps' requires target feature 'sse' +.include <bsd.port.options.mk> + +.if ${ARCH} != amd64 && ${ARCH} != i386 +CXXFLAGS+= -DDISABLE_SIMDMATH +.endif + .include <../../science/InsightToolkit/Makefile.version> .include <bsd.port.mk>