From 2f54f3512dc1fb4429d7ee8412eea26c9cb9088b Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Mon, 29 May 2023 12:58:23 +0800 Subject: ispc: fix build with gcc13 Backport an upstream fix to missing missing header issue triggered when building with gcc13. Signed-off-by: Anuj Mittal --- .../ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9.patch | 32 ++++++++++++++++++++++ .../clang-layer/recipes-core/ispc/ispc_1.19.0.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 dynamic-layers/clang-layer/recipes-core/ispc/ispc/ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9.patch (limited to 'dynamic-layers/clang-layer/recipes-core') diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9.patch new file mode 100644 index 00000000..52fb8126 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9.patch @@ -0,0 +1,32 @@ +From ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9 Mon Sep 17 00:00:00 2001 +From: Luya Tshimbalanga +Date: Tue, 28 Feb 2023 17:20:21 -0800 +Subject: [PATCH] Fix build with GCC 13 and possibly Clang 15 + +This fix add missing include to handle "uint32_t". + +Upstream-Status: Backport +Signed-off-by: Anuj Mittal +--- + src/target_registry.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/target_registry.h b/src/target_registry.h +index 2f7d13a8af..bad4ed0815 100644 +--- a/src/target_registry.h ++++ b/src/target_registry.h +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2019-2021, Intel Corporation ++ Copyright (c) 2019-2023, Intel Corporation + All rights reserved. + + Redistribution and use in source and binary forms, with or without +@@ -40,6 +40,7 @@ + #include "bitcode_lib.h" + + #include ++#include + #include + #include + diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.19.0.bb b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.19.0.bb index a471b154..ab48f5fb 100644 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.19.0.bb +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.19.0.bb @@ -17,6 +17,7 @@ SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;branch=main \ file://0001-Fix-QA-Issues.patch \ file://0001-Add-print-function-to-print-test-run-status-in-ptest.patch \ file://0001-CMakeLists.txt-allow-to-pick-llvm-config-from-usr-bi.patch \ + file://ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9.patch \ file://run-ptest \ " -- cgit v1.2.3-54-g00ecf