summaryrefslogtreecommitdiff
path: root/dev-libs/pocl/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-20 06:00:45 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-20 06:00:45 +0000
commite660fe12946bfa241d169ebb2467939907de75d8 (patch)
tree4b2ba6aedbeadcf69d25b78526ac31be8e432a90 /dev-libs/pocl/files
parentca7fcaa76aaf1f94284894a8d9a01bb153e80b11 (diff)
gentoo auto-resync : 20:01:2023 - 06:00:45
Diffstat (limited to 'dev-libs/pocl/files')
-rw-r--r--dev-libs/pocl/files/pocl-3.1-nodebug.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-libs/pocl/files/pocl-3.1-nodebug.patch b/dev-libs/pocl/files/pocl-3.1-nodebug.patch
new file mode 100644
index 000000000000..ea1085dc4a49
--- /dev/null
+++ b/dev-libs/pocl/files/pocl-3.1-nodebug.patch
@@ -0,0 +1,29 @@
+https://github.com/pocl/pocl/commit/a13cb332d6678d4556d7319b284b77c371c4b91e
+
+commit a13cb332d6678d4556d7319b284b77c371c4b91e
+Author: Martin Kletzander <nert.pinx@gmail.com>
+Date: Tue Jan 17 09:04:41 2023 +0100
+
+ Add stub macro POCL_MSG_PRINT_ALMAIF_MMAP without POCL_DEBUG_MESSAGES
+
+ Without this the build fails with the following error when built without
+ POCL_DEBUG_MESSAGES:
+
+ ../lib/CL/devices/almaif/MMAPRegion.cc: In constructor ‘MMAPRegion::MMAPRegion(size_t, size_t, int)’:
+ ../lib/CL/devices/almaif/MMAPRegion.cc:43:3: error: ‘POCL_MSG_PRINT_ALMAIF_MMAP’ was not declared in this scope; did you mean ‘POCL_MSG_PRINT_ALMAIF2’?
+ 43 | POCL_MSG_PRINT_ALMAIF_MMAP(
+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~
+ | POCL_MSG_PRINT_ALMAIF2
+
+ and about 10 more.
+
+--- a/lib/CL/pocl_debug.h
++++ b/lib/CL/pocl_debug.h
+@@ -284,6 +284,7 @@ POCL_EXPORT
+
+ #define POCL_MSG_PRINT_ALMAIF2(...) do {} while (0)
+ #define POCL_MSG_PRINT_ALMAIF(...) do {} while (0)
++ #define POCL_MSG_PRINT_ALMAIF_MMAP(...) do {} while (0)
+ #define POCL_MSG_PRINT_PROXY2(...) do {} while (0)
+ #define POCL_MSG_PRINT_PROXY(...) do {} while (0)
+ #define POCL_MSG_PRINT_VULKAN2(...) do {} while (0)