diff options
Diffstat (limited to 'meta/recipes-graphics/vulkan/vulkan-samples/0001-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch')
-rw-r--r-- | meta/recipes-graphics/vulkan/vulkan-samples/0001-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-graphics/vulkan/vulkan-samples/0001-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch b/meta/recipes-graphics/vulkan/vulkan-samples/0001-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch new file mode 100644 index 0000000000..f50aa806da --- /dev/null +++ b/meta/recipes-graphics/vulkan/vulkan-samples/0001-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From e40c14a3e007fac0e4f2e4164fdf14d1712355bd Mon Sep 17 00:00:00 2001 | ||
2 | From: Sergei Trofimovich <slyich@gmail.com> | ||
3 | Date: Fri, 2 Aug 2024 22:44:21 +0100 | ||
4 | Subject: [PATCH] SPIRV/SpvBuilder.h: add missing <cstdint> include | ||
5 | |||
6 | Without the change `glslang` build fails on upcoming `gcc-15` as: | ||
7 | |||
8 | In file included from /build/source/SPIRV/GlslangToSpv.cpp:45: | ||
9 | SPIRV/SpvBuilder.h:248:30: error: 'uint32_t' has not been declared | ||
10 | 248 | Id makeDebugLexicalBlock(uint32_t line); | ||
11 | | ^~~~~~~~ | ||
12 | |||
13 | Upstream-Status: Backport [https://github.com/KhronosGroup/glslang/commit/e40c14a3e007fac0e4f2e4164fdf14d1712355bd] | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | SPIRV/SpvBuilder.h | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | --- a/SPIRV/SpvBuilder.h | ||
20 | +++ b/SPIRV/SpvBuilder.h | ||
21 | @@ -56,6 +56,7 @@ namespace spv { | ||
22 | } | ||
23 | |||
24 | #include <algorithm> | ||
25 | +#include <cstdint> | ||
26 | #include <map> | ||
27 | #include <memory> | ||
28 | #include <set> | ||