diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-16 10:27:54 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-17 19:57:32 +0100 |
commit | 37c4ec6028333c3bccf4c333bae02dfbe0d04ee3 (patch) | |
tree | cf9ef570e35d52675b240d493cfcf7b6c53b38e9 /meta/recipes-graphics/spir | |
parent | b00f391a1ef72c9f30f0f75555de7ac232379524 (diff) | |
download | poky-37c4ec6028333c3bccf4c333bae02dfbe0d04ee3.tar.gz |
spirv-tools: Remove default copy constructor in header
Fixes build with when clang libc++ runtime is used.
(From OE-Core rev: b92dfcb4b02f6f0971ff5f78b9c6ef4ab751e889)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/spir')
-rw-r--r-- | meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch | 34 | ||||
-rw-r--r-- | meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb | 4 |
2 files changed, 37 insertions, 1 deletions
diff --git a/meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch b/meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch new file mode 100644 index 0000000000..044c366a75 --- /dev/null +++ b/meta/recipes-graphics/spir/spirv-tools/0001-Remove-default-copy-constructor-in-header.-4879.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From a90ccc240501bf3362b23f67771f65b7dec2ccf9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jamie Madill <jmadill@chromium.org> | ||
3 | Date: Fri, 29 Jul 2022 14:26:37 -0400 | ||
4 | Subject: [PATCH] Remove default copy constructor in header. (#4879) | ||
5 | |||
6 | A recent libc++ roll in Chrome warned of a deprecated copy. We're | ||
7 | still looking if this is a bug in libc++ or a valid warning, but | ||
8 | removing the redundant line is a safe workaround or fix in either | ||
9 | case. | ||
10 | |||
11 | See discussion in https://crrev.com/c/3791771 | ||
12 | |||
13 | Upstream-Status: Backport [https://github.com/KhronosGroup/SPIRV-Tools/pull/4879] | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | source/opt/merge_return_pass.h | 2 -- | ||
17 | 1 file changed, 2 deletions(-) | ||
18 | |||
19 | diff --git a/source/opt/merge_return_pass.h b/source/opt/merge_return_pass.h | ||
20 | index a35cf269..d15db2f6 100644 | ||
21 | --- a/source/opt/merge_return_pass.h | ||
22 | +++ b/source/opt/merge_return_pass.h | ||
23 | @@ -118,8 +118,6 @@ class MergeReturnPass : public MemPass { | ||
24 | StructuredControlState(Instruction* break_merge, Instruction* merge) | ||
25 | : break_merge_(break_merge), current_merge_(merge) {} | ||
26 | |||
27 | - StructuredControlState(const StructuredControlState&) = default; | ||
28 | - | ||
29 | bool InBreakable() const { return break_merge_; } | ||
30 | bool InStructuredFlow() const { return CurrentMergeId() != 0; } | ||
31 | |||
32 | -- | ||
33 | 2.37.2 | ||
34 | |||
diff --git a/meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb b/meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb index eb907326c4..fc1074d8b8 100644 --- a/meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb +++ b/meta/recipes-graphics/spir/spirv-tools_1.3.216.0.bb | |||
@@ -8,7 +8,9 @@ LICENSE = "Apache-2.0" | |||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
9 | 9 | ||
10 | SRCREV = "c94501352d545e84c821ce031399e76d1af32d18" | 10 | SRCREV = "c94501352d545e84c821ce031399e76d1af32d18" |
11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https" | 11 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https \ |
12 | file://0001-Remove-default-copy-constructor-in-header.-4879.patch \ | ||
13 | " | ||
12 | PE = "1" | 14 | PE = "1" |
13 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" | 15 | UPSTREAM_CHECK_GITTAGREGEX = "sdk-(?P<pver>\d+(\.\d+)+)" |
14 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |