diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-03-24 18:42:25 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-27 11:19:04 +0000 |
commit | ecff1d6a2dcfcd243d15039f08727889e7889158 (patch) | |
tree | 76d6bcfd6989630adcd00474a1a28fc3fe0d70c1 /meta/recipes-graphics/vulkan/vulkan-samples/0001-SPIRV-SpvBuilder.h-add-missing-cstdint-include.patch | |
parent | bf94ea1cc4e966fa2cf55206389f9c34fbd5419d (diff) | |
download | poky-ecff1d6a2dcfcd243d15039f08727889e7889158.tar.gz |
vulkan-samples: Fix build with GCC-15
Include cstdint for uint32_t definition
Update to tip if trunk as it helps with GCC-15 fixes
(From OE-Core rev: 1db86a3381c94951de44bb2b6ec840fd99a7d4be)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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> | ||