From ba448341719c9a1b3c456d41d34c779d92b4b353 Mon Sep 17 00:00:00 2001 From: Thierry Dussuet Date: Mon, 18 Mar 2024 17:17:07 +0100 Subject: [PATCH] devel/opencl-clang: Fix build for llvm16 and llvm17 --- devel/opencl-clang/Makefile | 2 ++ .../files/extra-patch-opencl__clang.map | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 devel/opencl-clang/files/extra-patch-opencl__clang.map diff --git a/devel/opencl-clang/Makefile b/devel/opencl-clang/Makefile index 961bc8ddce36..fa898a5799ea 100644 --- a/devel/opencl-clang/Makefile +++ b/devel/opencl-clang/Makefile @@ -53,6 +53,8 @@ PLIST_FILES= ${_PLIST_FILES:S,^,${FLAVOR}/,} .if ${FLAVOR:U} == llvm11 || ${FLAVOR:U} == llvm12 || ${FLAVOR:U} == llvm13 || ${FLAVOR:U} == llvm14 || ${FLAVOR:U} == llvm15 EXTRA_PATCHES= ${PATCHDIR}/extra-patch-common__clang.map +.else +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-opencl__clang.map .endif .if !defined(DEFAULT_MAKESUM) diff --git a/devel/opencl-clang/files/extra-patch-opencl__clang.map b/devel/opencl-clang/files/extra-patch-opencl__clang.map new file mode 100644 index 000000000000..5b29c04dfddb --- /dev/null +++ b/devel/opencl-clang/files/extra-patch-opencl__clang.map @@ -0,0 +1,13 @@ +--- opencl_clang.map.orig 2024-03-18 14:55:35 UTC ++++ opencl_clang.map +@@ -2,10 +2,7 @@ global: + global: + extern "C" { + CheckCompileOptions; +- CheckLinkOptions; + Compile; +- Link; +- GetKernelArgInfo; + PCM_OPENCL_C_H*; + PCM_OPENCL_C_BASE_H*; + PCM_OPENCL_C_12_SPIR_PCM*; -- 2.44.0