From b62a7094a2152f1551be7baa71cb088df0e9d435 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Tue, 24 Dec 2019 11:37:45 +0000 Subject: [PATCH] devel/intel-graphics-compiler: unbreak on DragonFly In file included from IGC/Compiler/GenUpdateCB.cpp:46: IGC/../3d/common/iStdLib/MemCopy.h:103:25: error: expected initializer before 'FastBlockCopyFromUSWC_SSE4_1_movntdqa_movdqa' inline void __fastcall FastBlockCopyFromUSWC_SSE4_1_movntdqa_movdqa(void* dst, const void* src ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ IGC/../3d/common/iStdLib/MemCopy.h:104:25: error: expected initializer before 'FastBlockCopyFromUSWC_SSE4_1_movntdqa_movdqu' inline void __fastcall FastBlockCopyFromUSWC_SSE4_1_movntdqa_movdqu(void* dst, const void* src ); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: DPorts --- devel/intel-graphics-compiler/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/devel/intel-graphics-compiler/Makefile b/devel/intel-graphics-compiler/Makefile index ddf8177c0905..53a7b4a43201 100644 --- a/devel/intel-graphics-compiler/Makefile +++ b/devel/intel-graphics-compiler/Makefile @@ -23,6 +23,7 @@ USES= bison cmake compiler:c++17-lang python:build USE_GITHUB= yes USE_LDCONFIG= yes GH_ACCOUNT= intel +CFLAGS+= -Wno-macro-redefined # __fastcall PLIST_SUB= ARCH_SUFX=${ARCH:S/i386/32/:S/amd//:S/x86_//} post-patch: @@ -36,9 +37,6 @@ post-patch: @${REINPLACE_CMD} -e '/clang-\$$/ { s//clang$$/; \ s/MAJOR}/&$${LLVM_VERSION_MINOR}/; }' \ ${WRKSRC}/IGC/BiFModule/CMakeLists.txt -# Silence -Wmacro-redefined to expose __fastcall misuse - @${REINPLACE_CMD} -e '/__fastcall/d' \ - ${WRKSRC}/inc/common/UFO/portable_compiler.h # No need to abort on every benign warning enabled by default @${REINPLACE_CMD} -e 's/"-Werror"//; /-Werror/d' \ ${WRKSRC}/IGC/CMakeLists.txt