summaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-11-27 09:49:46 -0800
committerKhem Raj <raj.khem@gmail.com>2024-11-28 18:30:21 -0800
commit275d0a5ed688886e907deb71e4ec6fd94fd24f91 (patch)
tree041f8a3ab9feaceb18b3103770f5d9afed1369cc /recipes-devtools
parent458566f290258d1fe63e95893bae143d9e2ab8e1 (diff)
downloadmeta-clang-275d0a5ed688886e907deb71e4ec6fd94fd24f91.tar.gz
clang: Upgrade to 19.1.4
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/clang/clang-cross-canadian_git.bb2
-rw-r--r--recipes-devtools/clang/clang-cross_git.bb2
-rw-r--r--recipes-devtools/clang/clang-crosssdk_git.bb4
-rw-r--r--recipes-devtools/clang/clang.inc2
-rw-r--r--recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch2
-rw-r--r--recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch2
-rw-r--r--recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch2
-rw-r--r--recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch2
-rw-r--r--recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch2
-rw-r--r--recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch14
-rw-r--r--recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch4
-rw-r--r--recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch4
-rw-r--r--recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch2
-rw-r--r--recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch6
-rw-r--r--recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch2
-rw-r--r--recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch2
-rw-r--r--recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch2
-rw-r--r--recipes-devtools/clang/clang/0014-cmake-Fix-configure-for-packages-using-find_package.patch (renamed from recipes-devtools/clang/clang/0015-cmake-Fix-configure-for-packages-using-find_package.patch)2
-rw-r--r--recipes-devtools/clang/clang/0014-libcxx-Add-compiler-runtime-library-to-link-step-for.patch37
-rw-r--r--recipes-devtools/clang/clang/0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch (renamed from recipes-devtools/clang/clang/0016-clang-Fix-resource-dir-location-for-cross-toolchains.patch)4
-rw-r--r--recipes-devtools/clang/clang/0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch (renamed from recipes-devtools/clang/clang/0017-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch)14
-rw-r--r--recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch (renamed from recipes-devtools/clang/clang/0018-clang-Use-python3-in-python-scripts.patch)2
-rw-r--r--recipes-devtools/clang/clang/0018-For-x86_64-set-Yocto-based-GCC-install-search-path.patch (renamed from recipes-devtools/clang/clang/0019-For-x86_64-set-Yocto-based-GCC-install-search-path.patch)4
-rw-r--r--recipes-devtools/clang/clang/0019-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch (renamed from recipes-devtools/clang/clang/0020-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch)6
-rw-r--r--recipes-devtools/clang/clang/0020-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch (renamed from recipes-devtools/clang/clang/0021-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch)2
-rw-r--r--recipes-devtools/clang/clang/0021-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch (renamed from recipes-devtools/clang/clang/0022-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch)6
-rw-r--r--recipes-devtools/clang/clang/0022-libunwind-Added-unw_backtrace-method.patch (renamed from recipes-devtools/clang/clang/0023-libunwind-Added-unw_backtrace-method.patch)2
-rw-r--r--recipes-devtools/clang/clang/0023-clang-Do-not-use-install-relative-libc-headers.patch (renamed from recipes-devtools/clang/clang/0024-clang-Do-not-use-install-relative-libc-headers.patch)6
-rw-r--r--recipes-devtools/clang/clang/0024-Fix-lib-paths-for-OpenEmbedded-Host.patch (renamed from recipes-devtools/clang/clang/0025-Fix-lib-paths-for-OpenEmbedded-Host.patch)8
-rw-r--r--recipes-devtools/clang/clang/0025-Correct-library-search-path-for-OpenEmbedded-Host.patch (renamed from recipes-devtools/clang/clang/0026-Correct-library-search-path-for-OpenEmbedded-Host.patch)4
-rw-r--r--recipes-devtools/clang/clang/0026-lldb-Link-with-libatomic-on-x86.patch (renamed from recipes-devtools/clang/clang/0027-lldb-Link-with-libatomic-on-x86.patch)2
-rw-r--r--recipes-devtools/clang/clang/0027-compiler-rt-Enable-__int128-for-ppc32.patch (renamed from recipes-devtools/clang/clang/0028-compiler-rt-Enable-__int128-for-ppc32.patch)2
-rw-r--r--recipes-devtools/clang/clang/0028-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch (renamed from recipes-devtools/clang/clang/0029-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch)2
-rw-r--r--recipes-devtools/clang/clang/0029-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch (renamed from recipes-devtools/clang/clang/0030-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch)2
-rw-r--r--recipes-devtools/clang/clang/0030-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch (renamed from recipes-devtools/clang/clang/0031-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch)2
-rw-r--r--recipes-devtools/clang/clang/0031-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch (renamed from recipes-devtools/clang/clang/0032-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch)6
-rw-r--r--recipes-devtools/clang/clang/0032-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch (renamed from recipes-devtools/clang/clang/0033-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch)20
-rw-r--r--recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch (renamed from recipes-devtools/clang/clang/0034-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch)2
-rw-r--r--recipes-devtools/clang/clang/0034-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch (renamed from recipes-devtools/clang/clang/0035-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch)2
-rw-r--r--recipes-devtools/clang/clang_git.bb16
-rw-r--r--recipes-devtools/clang/common.inc45
-rw-r--r--recipes-devtools/clang/compiler-rt-sanitizers_git.bb15
-rw-r--r--recipes-devtools/clang/compiler-rt_git.bb40
-rw-r--r--recipes-devtools/clang/libclc_git.bb2
-rw-r--r--recipes-devtools/clang/libcxx_git.bb36
-rw-r--r--recipes-devtools/clang/nativesdk-clang-glue.bb2
-rw-r--r--recipes-devtools/clang/openmp_git.bb2
47 files changed, 161 insertions, 190 deletions
diff --git a/recipes-devtools/clang/clang-cross-canadian_git.bb b/recipes-devtools/clang/clang-cross-canadian_git.bb
index 33c33c4..f327a12 100644
--- a/recipes-devtools/clang/clang-cross-canadian_git.bb
+++ b/recipes-devtools/clang/clang-cross-canadian_git.bb
@@ -1,7 +1,7 @@
1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "Clang/LLVM based C/C++ compiler (cross-canadian for ${TARGET_ARCH} target)" 4SUMMARY = "Clang/LLVM based C/C++ compiler (cross-canadian for ${TARGET_ARCH} target)"
5HOMEPAGE = "http://clang.llvm.org/" 5HOMEPAGE = "http://clang.llvm.org/"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab" 6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab"
7SECTION = "devel" 7SECTION = "devel"
diff --git a/recipes-devtools/clang/clang-cross_git.bb b/recipes-devtools/clang/clang-cross_git.bb
index 8aee5cd..a0c215e 100644
--- a/recipes-devtools/clang/clang-cross_git.bb
+++ b/recipes-devtools/clang/clang-cross_git.bb
@@ -1,7 +1,7 @@
1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "Cross compiler wrappers for LLVM based C/C++ compiler" 4SUMMARY = "Cross compiler wrappers for LLVM based C/C++ compiler"
5HOMEPAGE = "http://clang.llvm.org/" 5HOMEPAGE = "http://clang.llvm.org/"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab" 6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab"
7SECTION = "devel" 7SECTION = "devel"
diff --git a/recipes-devtools/clang/clang-crosssdk_git.bb b/recipes-devtools/clang/clang-crosssdk_git.bb
index fb8bee5..913c49a 100644
--- a/recipes-devtools/clang/clang-crosssdk_git.bb
+++ b/recipes-devtools/clang/clang-crosssdk_git.bb
@@ -1,12 +1,12 @@
1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "SDK Cross compiler wrappers for LLVM based C/C++ compiler" 4SUMMARY = "SDK Cross compiler wrappers for LLVM based C/C++ compiler"
5HOMEPAGE = "http://clang.llvm.org/" 5HOMEPAGE = "http://clang.llvm.org/"
6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab" 6LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab"
7SECTION = "devel" 7SECTION = "devel"
8 8
9PN = "clang-crosssdk-${TARGET_ARCH}" 9PN = "clang-crosssdk-${SDK_SYS}"
10 10
11require clang.inc 11require clang.inc
12require common-source.inc 12require common-source.inc
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc
index 3604273..0c9bc0e 100644
--- a/recipes-devtools/clang/clang.inc
+++ b/recipes-devtools/clang/clang.inc
@@ -5,7 +5,7 @@ LLVM_HTTP ?= "https://github.com/llvm"
5 5
6MAJOR_VER = "19" 6MAJOR_VER = "19"
7MINOR_VER = "1" 7MINOR_VER = "1"
8PATCH_VER = "2" 8PATCH_VER = "4"
9# could be 'rcX' or 'git' or empty ( for release ) 9# could be 'rcX' or 'git' or empty ( for release )
10VER_SUFFIX = "" 10VER_SUFFIX = ""
11 11
diff --git a/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch b/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch
index 97397d9..f2cc81e 100644
--- a/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch
+++ b/recipes-devtools/clang/clang/0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch
@@ -1,4 +1,4 @@
1From 78c27664e7ffee1bc7a8beff604860ea194e27a5 Mon Sep 17 00:00:00 2001 1From 1ae8003c398cb280038301697860ef5769687648 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 27 Aug 2017 10:37:49 -0700 3Date: Sun, 27 Aug 2017 10:37:49 -0700
4Subject: [PATCH] libcxxabi: Find libunwind headers when 4Subject: [PATCH] libcxxabi: Find libunwind headers when
diff --git a/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch b/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch
index 95bee5b..e8981b8 100644
--- a/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch
+++ b/recipes-devtools/clang/clang/0002-compiler-rt-support-a-new-embedded-linux-target.patch
@@ -1,4 +1,4 @@
1From 1b0fd972d7cd2d78061bcf874c177969b19eeaab Mon Sep 17 00:00:00 2001 1From c0462b384da7a882ea924ea47476c3cb49feae46 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 19 Apr 2015 15:16:23 -0700 3Date: Sun, 19 Apr 2015 15:16:23 -0700
4Subject: [PATCH] compiler-rt: support a new embedded linux target 4Subject: [PATCH] compiler-rt: support a new embedded linux target
diff --git a/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch b/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch
index 37321a9..0cf0a89 100644
--- a/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch
+++ b/recipes-devtools/clang/clang/0003-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch
@@ -1,4 +1,4 @@
1From 11d8cadd76aaf434556eeb9f42ee794ca72802a4 Mon Sep 17 00:00:00 2001 1From 4f2e69944e8a42da9bd1f7d49399dc3d0fad4859 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 19 May 2016 23:11:45 -0700 3Date: Thu, 19 May 2016 23:11:45 -0700
4Subject: [PATCH] compiler-rt: Simplify cross-compilation. Don't use 4Subject: [PATCH] compiler-rt: Simplify cross-compilation. Don't use
diff --git a/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch b/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch
index ac4edbb..8d8995b 100644
--- a/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch
+++ b/recipes-devtools/clang/clang/0004-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch
@@ -1,4 +1,4 @@
1From 7791c1c014b5d2f86142a87a0ede3ad1dc9aea46 Mon Sep 17 00:00:00 2001 1From 0d94f6e299bfa76da9be6451d9e759bc3f6d08a7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 21 May 2016 00:33:20 +0000 3Date: Sat, 21 May 2016 00:33:20 +0000
4Subject: [PATCH] llvm: TargetLibraryInfo: Undefine libc functions if they are 4Subject: [PATCH] llvm: TargetLibraryInfo: Undefine libc functions if they are
diff --git a/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch b/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch
index c5f4147..f767780 100644
--- a/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch
+++ b/recipes-devtools/clang/clang/0005-llvm-allow-env-override-of-exe-and-libdir-path.patch
@@ -1,4 +1,4 @@
1From 347fa4394fc2f70ce199ef6edee17d19d64bf74a Mon Sep 17 00:00:00 2001 1From 754c5869819c2dd008786a191f06385e6b97e19b Mon Sep 17 00:00:00 2001
2From: Martin Kelly <mkelly@xevo.com> 2From: Martin Kelly <mkelly@xevo.com>
3Date: Fri, 19 May 2017 00:22:57 -0700 3Date: Fri, 19 May 2017 00:22:57 -0700
4Subject: [PATCH] llvm: allow env override of exe and libdir path 4Subject: [PATCH] llvm: allow env override of exe and libdir path
diff --git a/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch b/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch
index 24e64b0..9a4621b 100644
--- a/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch
+++ b/recipes-devtools/clang/clang/0006-clang-driver-Check-sysroot-for-ldso-path.patch
@@ -1,4 +1,4 @@
1From ff55b613cb917ba96e30ff5c0a09942e52beea7e Mon Sep 17 00:00:00 2001 1From df4c35c458e7f0b752e76500316ce3ab7583dd5b Mon Sep 17 00:00:00 2001
2From: Dan McGregor <dan.mcgregor@usask.ca> 2From: Dan McGregor <dan.mcgregor@usask.ca>
3Date: Wed, 26 Apr 2017 20:29:41 -0600 3Date: Wed, 26 Apr 2017 20:29:41 -0600
4Subject: [PATCH] clang: driver: Check sysroot for ldso path 4Subject: [PATCH] clang: driver: Check sysroot for ldso path
@@ -15,11 +15,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 1 file changed, 21 insertions(+), 1 deletion(-) 15 1 file changed, 21 insertions(+), 1 deletion(-)
16 16
17diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp 17diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
18index 2265138edbff..4067f7560140 100644 18index 35bf39069605..e4f593e462d6 100644
19--- a/clang/lib/Driver/ToolChains/Linux.cpp 19--- a/clang/lib/Driver/ToolChains/Linux.cpp
20+++ b/clang/lib/Driver/ToolChains/Linux.cpp 20+++ b/clang/lib/Driver/ToolChains/Linux.cpp
21@@ -510,7 +510,11 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 21@@ -511,7 +511,11 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
22 Triple.getEnvironment() == llvm::Triple::GNUEABIHF || 22 Triple.getEnvironment() == llvm::Triple::GNUEABIHFT64 ||
23 tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard; 23 tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard;
24 24
25- LibDir = "lib"; 25- LibDir = "lib";
@@ -31,7 +31,7 @@ index 2265138edbff..4067f7560140 100644
31 Loader = HF ? "ld-linux-armhf.so.3" : "ld-linux.so.3"; 31 Loader = HF ? "ld-linux-armhf.so.3" : "ld-linux.so.3";
32 break; 32 break;
33 } 33 }
34@@ -565,11 +569,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 34@@ -566,11 +570,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
35 LibDir = "lib64"; 35 LibDir = "lib64";
36 Loader = 36 Loader =
37 (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; 37 (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1";
@@ -51,7 +51,7 @@ index 2265138edbff..4067f7560140 100644
51 break; 51 break;
52 case llvm::Triple::riscv32: 52 case llvm::Triple::riscv32:
53 case llvm::Triple::riscv64: { 53 case llvm::Triple::riscv64: {
54@@ -587,6 +599,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 54@@ -588,6 +600,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
55 case llvm::Triple::sparcv9: 55 case llvm::Triple::sparcv9:
56 LibDir = "lib64"; 56 LibDir = "lib64";
57 Loader = "ld-linux.so.2"; 57 Loader = "ld-linux.so.2";
@@ -62,7 +62,7 @@ index 2265138edbff..4067f7560140 100644
62 break; 62 break;
63 case llvm::Triple::systemz: 63 case llvm::Triple::systemz:
64 LibDir = "lib"; 64 LibDir = "lib";
65@@ -601,6 +617,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 65@@ -602,6 +618,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
66 66
67 LibDir = X32 ? "libx32" : "lib64"; 67 LibDir = X32 ? "libx32" : "lib64";
68 Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; 68 Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2";
diff --git a/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch b/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch
index bf5a101..fc46b3c 100644
--- a/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch
+++ b/recipes-devtools/clang/clang/0007-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch
@@ -1,4 +1,4 @@
1From db1a59d2537f4d843d51e0a628b8d9596fa3e1d1 Mon Sep 17 00:00:00 2001 1From 7875b568926bbec5b7e3312c55991723c917493e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 19 May 2016 21:11:06 -0700 3Date: Thu, 19 May 2016 21:11:06 -0700
4Subject: [PATCH] clang: Driver/tools.cpp: Add -lssp_nonshared on musl 4Subject: [PATCH] clang: Driver/tools.cpp: Add -lssp_nonshared on musl
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 1 file changed, 6 insertions(+) 14 1 file changed, 6 insertions(+)
15 15
16diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp 16diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
17index 543f3965dfd4..668b56db37c6 100644 17index 5e9a655eaf82..3e301f2e1d95 100644
18--- a/clang/lib/Driver/ToolChains/Gnu.cpp 18--- a/clang/lib/Driver/ToolChains/Gnu.cpp
19+++ b/clang/lib/Driver/ToolChains/Gnu.cpp 19+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
20@@ -632,6 +632,12 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, 20@@ -632,6 +632,12 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
diff --git a/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch b/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch
index 8f6779f..f21be08 100644
--- a/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch
+++ b/recipes-devtools/clang/clang/0008-clang-Prepend-trailing-to-sysroot.patch
@@ -1,4 +1,4 @@
1From 58b2cb10360b5188be51c1f535412d7fef3c1fef Mon Sep 17 00:00:00 2001 1From 84c1650cac223a4578eb43c905fdfb30b617274e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 16 Mar 2017 09:02:13 -0700 3Date: Thu, 16 Mar 2017 09:02:13 -0700
4Subject: [PATCH] clang: Prepend trailing '/' to sysroot 4Subject: [PATCH] clang: Prepend trailing '/' to sysroot
@@ -25,7 +25,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
25 1 file changed, 1 insertion(+), 1 deletion(-) 25 1 file changed, 1 insertion(+), 1 deletion(-)
26 26
27diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp 27diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
28index 4067f7560140..d4b26fc986d9 100644 28index e4f593e462d6..720bc136528b 100644
29--- a/clang/lib/Driver/ToolChains/Linux.cpp 29--- a/clang/lib/Driver/ToolChains/Linux.cpp
30+++ b/clang/lib/Driver/ToolChains/Linux.cpp 30+++ b/clang/lib/Driver/ToolChains/Linux.cpp
31@@ -222,7 +222,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) 31@@ -222,7 +222,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
diff --git a/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch b/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch
index d24d807..2ee776b 100644
--- a/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch
+++ b/recipes-devtools/clang/clang/0009-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch
@@ -1,4 +1,4 @@
1From b54a26dfbdef65bc829779cc84e937fe850e777e Mon Sep 17 00:00:00 2001 1From 4584c7048d003b239593ad66162437ffd669c220 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 16 Mar 2017 19:06:26 -0700 3Date: Thu, 16 Mar 2017 19:06:26 -0700
4Subject: [PATCH] clang: Look inside the target sysroot for compiler runtime 4Subject: [PATCH] clang: Look inside the target sysroot for compiler runtime
diff --git a/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch b/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch
index 1b902d8..c897808 100644
--- a/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch
+++ b/recipes-devtools/clang/clang/0010-clang-Define-releative-gcc-installation-dir.patch
@@ -1,4 +1,4 @@
1From faf6d96205dad549a7d8214774927f320e3689b0 Mon Sep 17 00:00:00 2001 1From c86ed165440802158757582df52f848cad3c0e57 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 20 Mar 2021 16:09:16 -0700 3Date: Sat, 20 Mar 2021 16:09:16 -0700
4Subject: [PATCH] clang: Define / releative gcc installation dir 4Subject: [PATCH] clang: Define / releative gcc installation dir
@@ -15,10 +15,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 1 file changed, 7 insertions(+), 7 deletions(-) 15 1 file changed, 7 insertions(+), 7 deletions(-)
16 16
17diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp 17diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
18index 668b56db37c6..e6961b023b5a 100644 18index 3e301f2e1d95..89ffc429d059 100644
19--- a/clang/lib/Driver/ToolChains/Gnu.cpp 19--- a/clang/lib/Driver/ToolChains/Gnu.cpp
20+++ b/clang/lib/Driver/ToolChains/Gnu.cpp 20+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
21@@ -2916,19 +2916,19 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( 21@@ -2918,19 +2918,19 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
22 // Whether this library suffix is relevant for the triple. 22 // Whether this library suffix is relevant for the triple.
23 bool Active; 23 bool Active;
24 } Suffixes[] = { 24 } Suffixes[] = {
diff --git a/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch b/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
index d4d6b23..b5712d6 100644
--- a/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
+++ b/recipes-devtools/clang/clang/0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch
@@ -1,4 +1,4 @@
1From 7c8bd8b6aeb817bd313517b00a2a54ed187986cf Mon Sep 17 00:00:00 2001 1From 08b05e4e835b6cb73c844e300dcc4eb4919d8154 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Jul 2019 22:51:39 -0700 3Date: Wed, 31 Jul 2019 22:51:39 -0700
4Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static 4Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static
diff --git a/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch b/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch
index acf6921..2086e0a 100644
--- a/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch
+++ b/recipes-devtools/clang/clang/0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch
@@ -1,4 +1,4 @@
1From 4af5f0a010f3a7c3af40110b8d049486baa8b647 Mon Sep 17 00:00:00 2001 1From 322385b4a6109f3f53c3679d7a276ec0084dd7b6 Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anuj.mittal@intel.com> 2From: Anuj Mittal <anuj.mittal@intel.com>
3Date: Thu, 26 Dec 2019 12:56:16 -0800 3Date: Thu, 26 Dec 2019 12:56:16 -0800
4Subject: [PATCH] Pass PYTHON_EXECUTABLE when cross compiling for native build 4Subject: [PATCH] Pass PYTHON_EXECUTABLE when cross compiling for native build
diff --git a/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch b/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch
index 43665bd..6db24a9 100644
--- a/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch
+++ b/recipes-devtools/clang/clang/0013-Check-for-atomic-double-intrinsics.patch
@@ -1,4 +1,4 @@
1From 23cf856d4896656d1625f7ed96c3b33aabc91cdc Mon Sep 17 00:00:00 2001 1From 2f41e0721f964677e8876b2c2f540836f426c83f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 18 Nov 2019 17:00:29 -0800 3Date: Mon, 18 Nov 2019 17:00:29 -0800
4Subject: [PATCH] Check for atomic<double> intrinsics 4Subject: [PATCH] Check for atomic<double> intrinsics
diff --git a/recipes-devtools/clang/clang/0015-cmake-Fix-configure-for-packages-using-find_package.patch b/recipes-devtools/clang/clang/0014-cmake-Fix-configure-for-packages-using-find_package.patch
index 51fde02..5e9eb01 100644
--- a/recipes-devtools/clang/clang/0015-cmake-Fix-configure-for-packages-using-find_package.patch
+++ b/recipes-devtools/clang/clang/0014-cmake-Fix-configure-for-packages-using-find_package.patch
@@ -1,4 +1,4 @@
1From e741dc89b9322dbdb7c2cb1cd1ea1d4819c1c3d5 Mon Sep 17 00:00:00 2001 1From 6c4f71af6a8c5c0e9261cd20522ecf8d1cdb9e48 Mon Sep 17 00:00:00 2001
2From: Ovidiu Panait <ovidiu.panait@windriver.com> 2From: Ovidiu Panait <ovidiu.panait@windriver.com>
3Date: Fri, 31 Jan 2020 10:56:11 +0200 3Date: Fri, 31 Jan 2020 10:56:11 +0200
4Subject: [PATCH] cmake: Fix configure for packages using find_package() 4Subject: [PATCH] cmake: Fix configure for packages using find_package()
diff --git a/recipes-devtools/clang/clang/0014-libcxx-Add-compiler-runtime-library-to-link-step-for.patch b/recipes-devtools/clang/clang/0014-libcxx-Add-compiler-runtime-library-to-link-step-for.patch
deleted file mode 100644
index f57f459..0000000
--- a/recipes-devtools/clang/clang/0014-libcxx-Add-compiler-runtime-library-to-link-step-for.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From cd5e6c265165b4aa31d211ee961c9e0218dee7e1 Mon Sep 17 00:00:00 2001
2From: Jeremy Puhlman <jpuhlman@mvista.com>
3Date: Thu, 16 Jan 2020 21:16:10 +0000
4Subject: [PATCH] libcxx: Add compiler runtime library to link step for libcxx
5
6This corrects "undefined reference to __divti3"
7
8Upstream-Status: Inappropriate [configuration]
9
10Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 libcxx/src/CMakeLists.txt | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt
17index 0dfc9647558d..08ddad95a42e 100644
18--- a/libcxx/src/CMakeLists.txt
19+++ b/libcxx/src/CMakeLists.txt
20@@ -200,7 +200,7 @@ if (LIBCXX_ENABLE_SHARED)
21 add_library(cxx_shared SHARED ${exclude_from_all} ${LIBCXX_SOURCES} ${LIBCXX_HEADERS})
22 target_include_directories(cxx_shared PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
23 target_link_libraries(cxx_shared PUBLIC cxx-headers libcxx-libc-shared
24- PRIVATE ${LIBCXX_LIBRARIES})
25+ PRIVATE ${LIBCXX_LIBRARIES} "$$($$CC --print-libgcc-file-name)")
26 set_target_properties(cxx_shared
27 PROPERTIES
28 COMPILE_FLAGS "${LIBCXX_COMPILE_FLAGS}"
29@@ -293,7 +293,7 @@ if (LIBCXX_ENABLE_STATIC)
30 add_library(cxx_static STATIC ${exclude_from_all} ${LIBCXX_SOURCES} ${LIBCXX_HEADERS})
31 target_include_directories(cxx_static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
32 target_link_libraries(cxx_static PUBLIC cxx-headers libcxx-libc-static
33- PRIVATE ${LIBCXX_LIBRARIES}
34+ PRIVATE ${LIBCXX_LIBRARIES} "$$($$CC --print-libgcc-file-name)"
35 PRIVATE libcxx-abi-static)
36 set_target_properties(cxx_static
37 PROPERTIES
diff --git a/recipes-devtools/clang/clang/0016-clang-Fix-resource-dir-location-for-cross-toolchains.patch b/recipes-devtools/clang/clang/0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch
index 5e5fcad..74ddbef 100644
--- a/recipes-devtools/clang/clang/0016-clang-Fix-resource-dir-location-for-cross-toolchains.patch
+++ b/recipes-devtools/clang/clang/0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch
@@ -1,4 +1,4 @@
1From 0550bd3df8005a96da53eb5d746b8ef0001618bd Mon Sep 17 00:00:00 2001 1From 11fce59f48e7d15d9b16509146484d60a04f25e9 Mon Sep 17 00:00:00 2001
2From: Jim Broadus <jbroadus@xevo.com> 2From: Jim Broadus <jbroadus@xevo.com>
3Date: Thu, 26 Mar 2020 16:05:53 -0700 3Date: Thu, 26 Mar 2020 16:05:53 -0700
4Subject: [PATCH] clang: Fix resource dir location for cross toolchains 4Subject: [PATCH] clang: Fix resource dir location for cross toolchains
@@ -20,7 +20,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 1 file changed, 7 insertions(+), 1 deletion(-) 20 1 file changed, 7 insertions(+), 1 deletion(-)
21 21
22diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp 22diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
23index 8e44d5afa40e..b3eaf45fded9 100644 23index ecae475f75da..ca6c8c98961f 100644
24--- a/clang/lib/Driver/Driver.cpp 24--- a/clang/lib/Driver/Driver.cpp
25+++ b/clang/lib/Driver/Driver.cpp 25+++ b/clang/lib/Driver/Driver.cpp
26@@ -189,9 +189,15 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath, 26@@ -189,9 +189,15 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath,
diff --git a/recipes-devtools/clang/clang/0017-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch b/recipes-devtools/clang/clang/0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch
index 814e380..7b130e9 100644
--- a/recipes-devtools/clang/clang/0017-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch
+++ b/recipes-devtools/clang/clang/0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch
@@ -1,4 +1,4 @@
1From 8ca37b3df79ebba94e028f6f665fd938d458e4d8 Mon Sep 17 00:00:00 2001 1From ed293c1fb5888f6ffe091f7276a7897e1a239c01 Mon Sep 17 00:00:00 2001
2From: Oleksandr Ocheretnyi <oocheret@cisco.com> 2From: Oleksandr Ocheretnyi <oocheret@cisco.com>
3Date: Wed, 15 Apr 2020 00:08:39 +0300 3Date: Wed, 15 Apr 2020 00:08:39 +0300
4Subject: [PATCH] clang: driver: Add dyld-prefix when checking sysroot for ldso 4Subject: [PATCH] clang: driver: Add dyld-prefix when checking sysroot for ldso
@@ -19,10 +19,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 1 file changed, 10 insertions(+), 10 deletions(-) 19 1 file changed, 10 insertions(+), 10 deletions(-)
20 20
21diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp 21diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
22index d4b26fc986d9..9149a4baa564 100644 22index 720bc136528b..b3a399187ec3 100644
23--- a/clang/lib/Driver/ToolChains/Linux.cpp 23--- a/clang/lib/Driver/ToolChains/Linux.cpp
24+++ b/clang/lib/Driver/ToolChains/Linux.cpp 24+++ b/clang/lib/Driver/ToolChains/Linux.cpp
25@@ -511,8 +511,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 25@@ -512,8 +512,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
26 tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard; 26 tools::arm::getARMFloatABI(*this, Args) == tools::arm::FloatABI::Hard;
27 27
28 LibDir = "lib32"; 28 LibDir = "lib32";
@@ -33,7 +33,7 @@ index d4b26fc986d9..9149a4baa564 100644
33 LibDir = "lib"; 33 LibDir = "lib";
34 } 34 }
35 Loader = HF ? "ld-linux-armhf.so.3" : "ld-linux.so.3"; 35 Loader = HF ? "ld-linux-armhf.so.3" : "ld-linux.so.3";
36@@ -569,8 +569,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 36@@ -570,8 +570,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
37 LibDir = "lib64"; 37 LibDir = "lib64";
38 Loader = 38 Loader =
39 (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1"; 39 (tools::ppc::hasPPCAbiArg(Args, "elfv2")) ? "ld64.so.2" : "ld64.so.1";
@@ -44,7 +44,7 @@ index d4b26fc986d9..9149a4baa564 100644
44 LibDir = "lib"; 44 LibDir = "lib";
45 } 45 }
46 break; 46 break;
47@@ -578,8 +578,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 47@@ -579,8 +579,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
48 LibDir = "lib64"; 48 LibDir = "lib64";
49 Loader = 49 Loader =
50 (tools::ppc::hasPPCAbiArg(Args, "elfv1")) ? "ld64.so.1" : "ld64.so.2"; 50 (tools::ppc::hasPPCAbiArg(Args, "elfv1")) ? "ld64.so.1" : "ld64.so.2";
@@ -55,7 +55,7 @@ index d4b26fc986d9..9149a4baa564 100644
55 LibDir = "lib"; 55 LibDir = "lib";
56 } 56 }
57 break; 57 break;
58@@ -599,8 +599,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 58@@ -600,8 +600,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
59 case llvm::Triple::sparcv9: 59 case llvm::Triple::sparcv9:
60 LibDir = "lib64"; 60 LibDir = "lib64";
61 Loader = "ld-linux.so.2"; 61 Loader = "ld-linux.so.2";
@@ -66,7 +66,7 @@ index d4b26fc986d9..9149a4baa564 100644
66 LibDir = "lib"; 66 LibDir = "lib";
67 } 67 }
68 break; 68 break;
69@@ -617,8 +617,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { 69@@ -618,8 +618,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const {
70 70
71 LibDir = X32 ? "libx32" : "lib64"; 71 LibDir = X32 ? "libx32" : "lib64";
72 Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2"; 72 Loader = X32 ? "ld-linux-x32.so.2" : "ld-linux-x86-64.so.2";
diff --git a/recipes-devtools/clang/clang/0018-clang-Use-python3-in-python-scripts.patch b/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch
index 8932c33..2631ba7 100644
--- a/recipes-devtools/clang/clang/0018-clang-Use-python3-in-python-scripts.patch
+++ b/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch
@@ -1,4 +1,4 @@
1From 288b38525494bd975ae408f178803be1a482f4b5 Mon Sep 17 00:00:00 2001 1From 42acc8d6b252851b3f3cdae08bd9e1ed5a9c8935 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 14 Oct 2020 22:19:57 -0700 3Date: Wed, 14 Oct 2020 22:19:57 -0700
4Subject: [PATCH] clang: Use python3 in python scripts 4Subject: [PATCH] clang: Use python3 in python scripts
diff --git a/recipes-devtools/clang/clang/0019-For-x86_64-set-Yocto-based-GCC-install-search-path.patch b/recipes-devtools/clang/clang/0018-For-x86_64-set-Yocto-based-GCC-install-search-path.patch
index 8a96504..5970565 100644
--- a/recipes-devtools/clang/clang/0019-For-x86_64-set-Yocto-based-GCC-install-search-path.patch
+++ b/recipes-devtools/clang/clang/0018-For-x86_64-set-Yocto-based-GCC-install-search-path.patch
@@ -1,4 +1,4 @@
1From 2f718eb848503fb74e9ef403346d79240300fb43 Mon Sep 17 00:00:00 2001 1From 1acea10c68785c42d625618d5cf120e4f19138f2 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 25 Jan 2021 16:14:35 +0800 3Date: Mon, 25 Jan 2021 16:14:35 +0800
4Subject: [PATCH] For x86_64, set Yocto based GCC install search path 4Subject: [PATCH] For x86_64, set Yocto based GCC install search path
@@ -57,7 +57,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
57 1 file changed, 1 insertion(+) 57 1 file changed, 1 insertion(+)
58 58
59diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp 59diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
60index e6961b023b5a..aa7bf4a2455f 100644 60index 89ffc429d059..e05dd30c3f89 100644
61--- a/clang/lib/Driver/ToolChains/Gnu.cpp 61--- a/clang/lib/Driver/ToolChains/Gnu.cpp
62+++ b/clang/lib/Driver/ToolChains/Gnu.cpp 62+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
63@@ -2498,6 +2498,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( 63@@ -2498,6 +2498,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
diff --git a/recipes-devtools/clang/clang/0020-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch b/recipes-devtools/clang/clang/0019-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch
index 5dc1caf..06b8ffd 100644
--- a/recipes-devtools/clang/clang/0020-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch
+++ b/recipes-devtools/clang/clang/0019-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch
@@ -1,4 +1,4 @@
1From b6c5146b473da03699ca79c170828f706508d3c0 Mon Sep 17 00:00:00 2001 1From a1ae883e90cb9554e10d24277a955fb0660e85a1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 11 Feb 2021 16:42:49 -0800 3Date: Thu, 11 Feb 2021 16:42:49 -0800
4Subject: [PATCH] llvm: Insert anchor for adding OE distro vendor names 4Subject: [PATCH] llvm: Insert anchor for adding OE distro vendor names
@@ -18,10 +18,10 @@ Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
18 1 file changed, 1 insertion(+), 1 deletion(-) 18 1 file changed, 1 insertion(+), 1 deletion(-)
19 19
20diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp 20diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp
21index bf89aace65e5..fb9cbeb30351 100644 21index 21d6c74b5956..32adf92c47bf 100644
22--- a/llvm/lib/TargetParser/Triple.cpp 22--- a/llvm/lib/TargetParser/Triple.cpp
23+++ b/llvm/lib/TargetParser/Triple.cpp 23+++ b/llvm/lib/TargetParser/Triple.cpp
24@@ -636,7 +636,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { 24@@ -639,7 +639,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
25 .Case("amd", Triple::AMD) 25 .Case("amd", Triple::AMD)
26 .Case("mesa", Triple::Mesa) 26 .Case("mesa", Triple::Mesa)
27 .Case("suse", Triple::SUSE) 27 .Case("suse", Triple::SUSE)
diff --git a/recipes-devtools/clang/clang/0021-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch b/recipes-devtools/clang/clang/0020-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch
index c75bb39..5b17a7a 100644
--- a/recipes-devtools/clang/clang/0021-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch
+++ b/recipes-devtools/clang/clang/0020-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch
@@ -1,4 +1,4 @@
1From e273afe387d91a3710117bf3e8f0132cfd2ec3a1 Mon Sep 17 00:00:00 2001 1From 11ef637da77e0fd115211f42665c2ed533f921a5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 19 May 2021 17:32:13 -0700 3Date: Wed, 19 May 2021 17:32:13 -0700
4Subject: [PATCH] compiler-rt: Do not use backtrace APIs on non-glibc linux 4Subject: [PATCH] compiler-rt: Do not use backtrace APIs on non-glibc linux
diff --git a/recipes-devtools/clang/clang/0022-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch b/recipes-devtools/clang/clang/0021-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch
index 63ac9f8..b33a9f4 100644
--- a/recipes-devtools/clang/clang/0022-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch
+++ b/recipes-devtools/clang/clang/0021-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch
@@ -1,4 +1,4 @@
1From 717710718d5b87551f3662d7e5e534599c1c0d87 Mon Sep 17 00:00:00 2001 1From 9a336eeaa8f8d62057802a98e249df695befa6b6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 19 May 2021 17:56:03 -0700 3Date: Wed, 19 May 2021 17:56:03 -0700
4Subject: [PATCH] clang: Fix x86 triple for non-debian multiarch linux distros 4Subject: [PATCH] clang: Fix x86 triple for non-debian multiarch linux distros
@@ -13,10 +13,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 1 file changed, 3 insertions(+) 13 1 file changed, 3 insertions(+)
14 14
15diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp 15diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
16index 9149a4baa564..cdea589eb226 100644 16index b3a399187ec3..f39c771798a8 100644
17--- a/clang/lib/Driver/ToolChains/Linux.cpp 17--- a/clang/lib/Driver/ToolChains/Linux.cpp
18+++ b/clang/lib/Driver/ToolChains/Linux.cpp 18+++ b/clang/lib/Driver/ToolChains/Linux.cpp
19@@ -714,6 +714,9 @@ void Linux::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, 19@@ -715,6 +715,9 @@ void Linux::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
20 GCCInstallation.getTriple().getArch() == llvm::Triple::x86 20 GCCInstallation.getTriple().getArch() == llvm::Triple::x86
21 ? "i386-linux-gnu" 21 ? "i386-linux-gnu"
22 : TripleStr; 22 : TripleStr;
diff --git a/recipes-devtools/clang/clang/0023-libunwind-Added-unw_backtrace-method.patch b/recipes-devtools/clang/clang/0022-libunwind-Added-unw_backtrace-method.patch
index 95a3e9b..77cbc1c 100644
--- a/recipes-devtools/clang/clang/0023-libunwind-Added-unw_backtrace-method.patch
+++ b/recipes-devtools/clang/clang/0022-libunwind-Added-unw_backtrace-method.patch
@@ -1,4 +1,4 @@
1From e1c5aa4cf7f4816d8c91d665ec536a3da039288d Mon Sep 17 00:00:00 2001 1From 01500348e14ae9fa8272f00c2a99ac6e153f5f8e Mon Sep 17 00:00:00 2001
2From: Maksim Kita <maksim-kita@yandex-team.ru> 2From: Maksim Kita <maksim-kita@yandex-team.ru>
3Date: Sun, 23 May 2021 10:27:29 +0000 3Date: Sun, 23 May 2021 10:27:29 +0000
4Subject: [PATCH] libunwind: Added unw_backtrace method 4Subject: [PATCH] libunwind: Added unw_backtrace method
diff --git a/recipes-devtools/clang/clang/0024-clang-Do-not-use-install-relative-libc-headers.patch b/recipes-devtools/clang/clang/0023-clang-Do-not-use-install-relative-libc-headers.patch
index b6943d1..bac9d10 100644
--- a/recipes-devtools/clang/clang/0024-clang-Do-not-use-install-relative-libc-headers.patch
+++ b/recipes-devtools/clang/clang/0023-clang-Do-not-use-install-relative-libc-headers.patch
@@ -1,4 +1,4 @@
1From 87678f207e6619d0d810124104f548fe18fb64e2 Mon Sep 17 00:00:00 2001 1From 081655795d08178e20bcfbaef5dab4a97230f095 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 11 Aug 2021 18:37:11 -0700 3Date: Wed, 11 Aug 2021 18:37:11 -0700
4Subject: [PATCH] clang: Do not use install relative libc++ headers 4Subject: [PATCH] clang: Do not use install relative libc++ headers
@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
16 1 file changed, 4 insertions(+), 1 deletion(-) 16 1 file changed, 4 insertions(+), 1 deletion(-)
17 17
18diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp 18diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
19index aa7bf4a2455f..822a550de2a5 100644 19index e05dd30c3f89..d9efd09d9da6 100644
20--- a/clang/lib/Driver/ToolChains/Gnu.cpp 20--- a/clang/lib/Driver/ToolChains/Gnu.cpp
21+++ b/clang/lib/Driver/ToolChains/Gnu.cpp 21+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
22@@ -3314,8 +3314,11 @@ Generic_GCC::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, 22@@ -3316,8 +3316,11 @@ Generic_GCC::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
23 // incompatible with the NDK libraries. 23 // incompatible with the NDK libraries.
24 SmallString<128> DriverIncludeDir(getDriver().Dir); 24 SmallString<128> DriverIncludeDir(getDriver().Dir);
25 llvm::sys::path::append(DriverIncludeDir, "..", "include"); 25 llvm::sys::path::append(DriverIncludeDir, "..", "include");
diff --git a/recipes-devtools/clang/clang/0025-Fix-lib-paths-for-OpenEmbedded-Host.patch b/recipes-devtools/clang/clang/0024-Fix-lib-paths-for-OpenEmbedded-Host.patch
index 4b2f0ce..617113d 100644
--- a/recipes-devtools/clang/clang/0025-Fix-lib-paths-for-OpenEmbedded-Host.patch
+++ b/recipes-devtools/clang/clang/0024-Fix-lib-paths-for-OpenEmbedded-Host.patch
@@ -1,4 +1,4 @@
1From 9fb0dd90e8b840117f7639ba1f0d5e0d99c12c89 Mon Sep 17 00:00:00 2001 1From 68007800df2e080d799670378c7ec9d667c7e782 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 7 Dec 2021 04:08:22 +0000 3Date: Tue, 7 Dec 2021 04:08:22 +0000
4Subject: [PATCH] Fix lib paths for OpenEmbedded Host 4Subject: [PATCH] Fix lib paths for OpenEmbedded Host
@@ -48,7 +48,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
48 1 file changed, 4 insertions(+), 1 deletion(-) 48 1 file changed, 4 insertions(+), 1 deletion(-)
49 49
50diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp 50diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
51index 822a550de2a5..f081a778cfe9 100644 51index d9efd09d9da6..4ec4976a6a0c 100644
52--- a/clang/lib/Driver/ToolChains/Gnu.cpp 52--- a/clang/lib/Driver/ToolChains/Gnu.cpp
53+++ b/clang/lib/Driver/ToolChains/Gnu.cpp 53+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
54@@ -19,6 +19,7 @@ 54@@ -19,6 +19,7 @@
@@ -59,7 +59,7 @@ index 822a550de2a5..f081a778cfe9 100644
59 #include "clang/Driver/Driver.h" 59 #include "clang/Driver/Driver.h"
60 #include "clang/Driver/DriverDiagnostic.h" 60 #include "clang/Driver/DriverDiagnostic.h"
61 #include "clang/Driver/MultilibBuilder.h" 61 #include "clang/Driver/MultilibBuilder.h"
62@@ -2906,6 +2907,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( 62@@ -2908,6 +2909,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
63 const llvm::Triple &TargetTriple, const ArgList &Args, 63 const llvm::Triple &TargetTriple, const ArgList &Args,
64 const std::string &LibDir, StringRef CandidateTriple, 64 const std::string &LibDir, StringRef CandidateTriple,
65 bool NeedsBiarchSuffix, bool GCCDirExists, bool GCCCrossDirExists) { 65 bool NeedsBiarchSuffix, bool GCCDirExists, bool GCCCrossDirExists) {
@@ -67,7 +67,7 @@ index 822a550de2a5..f081a778cfe9 100644
67 // Locations relative to the system lib directory where GCC's triple-specific 67 // Locations relative to the system lib directory where GCC's triple-specific
68 // directories might reside. 68 // directories might reside.
69 struct GCCLibSuffix { 69 struct GCCLibSuffix {
70@@ -2923,7 +2925,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( 70@@ -2925,7 +2927,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple(
71 // files in that location, not just GCC installation data. 71 // files in that location, not just GCC installation data.
72 {CandidateTriple.str(), "..", 72 {CandidateTriple.str(), "..",
73 TargetTriple.getVendor() == llvm::Triple::Freescale || 73 TargetTriple.getVendor() == llvm::Triple::Freescale ||
diff --git a/recipes-devtools/clang/clang/0026-Correct-library-search-path-for-OpenEmbedded-Host.patch b/recipes-devtools/clang/clang/0025-Correct-library-search-path-for-OpenEmbedded-Host.patch
index 6fdb5f9..11dc196 100644
--- a/recipes-devtools/clang/clang/0026-Correct-library-search-path-for-OpenEmbedded-Host.patch
+++ b/recipes-devtools/clang/clang/0025-Correct-library-search-path-for-OpenEmbedded-Host.patch
@@ -1,4 +1,4 @@
1From e15c555d55efa0732adf97c3e858441296b4e83c Mon Sep 17 00:00:00 2001 1From 65e12e7671888531d657e0484aa0397e7e98b134 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 7 Dec 2021 04:55:48 +0000 3Date: Tue, 7 Dec 2021 04:55:48 +0000
4Subject: [PATCH] Correct library search path for OpenEmbedded Host 4Subject: [PATCH] Correct library search path for OpenEmbedded Host
@@ -71,7 +71,7 @@ index 6f49e641104c..63b9ff30f0b6 100644
71 return Version; 71 return Version;
72 } 72 }
73diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp 73diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
74index cdea589eb226..41818470cf85 100644 74index f39c771798a8..9af52769b09a 100644
75--- a/clang/lib/Driver/ToolChains/Linux.cpp 75--- a/clang/lib/Driver/ToolChains/Linux.cpp
76+++ b/clang/lib/Driver/ToolChains/Linux.cpp 76+++ b/clang/lib/Driver/ToolChains/Linux.cpp
77@@ -82,6 +82,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, 77@@ -82,6 +82,7 @@ std::string Linux::getMultiarchTriple(const Driver &D,
diff --git a/recipes-devtools/clang/clang/0027-lldb-Link-with-libatomic-on-x86.patch b/recipes-devtools/clang/clang/0026-lldb-Link-with-libatomic-on-x86.patch
index d54ec3f..275a7c6 100644
--- a/recipes-devtools/clang/clang/0027-lldb-Link-with-libatomic-on-x86.patch
+++ b/recipes-devtools/clang/clang/0026-lldb-Link-with-libatomic-on-x86.patch
@@ -1,4 +1,4 @@
1From eb56f061bd5cf95bc7b65da7a51da4ffbf450351 Mon Sep 17 00:00:00 2001 1From d395cc2696d62d7d3448bc9a90f7697cf60e6273 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 8 Feb 2022 01:31:26 -0800 3Date: Tue, 8 Feb 2022 01:31:26 -0800
4Subject: [PATCH] lldb: Link with libatomic on x86 4Subject: [PATCH] lldb: Link with libatomic on x86
diff --git a/recipes-devtools/clang/clang/0028-compiler-rt-Enable-__int128-for-ppc32.patch b/recipes-devtools/clang/clang/0027-compiler-rt-Enable-__int128-for-ppc32.patch
index 90a1f1c..bbccb8a 100644
--- a/recipes-devtools/clang/clang/0028-compiler-rt-Enable-__int128-for-ppc32.patch
+++ b/recipes-devtools/clang/clang/0027-compiler-rt-Enable-__int128-for-ppc32.patch
@@ -1,4 +1,4 @@
1From fd20943309512af40d5f1b9b94220bcfa085c6a1 Mon Sep 17 00:00:00 2001 1From a92ea48f1959a20ab58b88091127f80a90d5870a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 9 Mar 2022 16:28:16 -0800 3Date: Wed, 9 Mar 2022 16:28:16 -0800
4Subject: [PATCH] compiler-rt: Enable __int128 for ppc32 4Subject: [PATCH] compiler-rt: Enable __int128 for ppc32
diff --git a/recipes-devtools/clang/clang/0029-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch b/recipes-devtools/clang/clang/0028-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch
index 5105705..8c56c1d 100644
--- a/recipes-devtools/clang/clang/0029-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch
+++ b/recipes-devtools/clang/clang/0028-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch
@@ -1,4 +1,4 @@
1From dfc9116514bd85660f658bdb3e4d44215d33c566 Mon Sep 17 00:00:00 2001 1From e06415c9d95a4830b61a21d2a9b159145c0a46f3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 12 Aug 2022 11:50:57 -0700 3Date: Fri, 12 Aug 2022 11:50:57 -0700
4Subject: [PATCH] llvm: Do not use cmake infra to detect libzstd 4Subject: [PATCH] llvm: Do not use cmake infra to detect libzstd
diff --git a/recipes-devtools/clang/clang/0030-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch b/recipes-devtools/clang/clang/0029-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch
index 5020adc..674cbe5 100644
--- a/recipes-devtools/clang/clang/0030-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch
+++ b/recipes-devtools/clang/clang/0029-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch
@@ -1,4 +1,4 @@
1From b1641882908052dc4f66c3967b8c3e3f0b1e54bb Mon Sep 17 00:00:00 2001 1From a1729e842b825919a8efe0389aa2b0f0c16a2924 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 3 Jan 2023 18:44:34 -0800 3Date: Tue, 3 Jan 2023 18:44:34 -0800
4Subject: [PATCH] compiler-rt: Fix stat struct's size for O32 ABI 4Subject: [PATCH] compiler-rt: Fix stat struct's size for O32 ABI
diff --git a/recipes-devtools/clang/clang/0031-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch b/recipes-devtools/clang/clang/0030-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch
index 6cc7d75..1c5e1ad 100644
--- a/recipes-devtools/clang/clang/0031-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch
+++ b/recipes-devtools/clang/clang/0030-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch
@@ -1,4 +1,4 @@
1From 5a2154c24ef0e9f2d5a5aabafa3e019707c16552 Mon Sep 17 00:00:00 2001 1From dbf32edb06caeed5324edfb13bc42bf8fc1406a5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 21 Feb 2023 12:46:10 -0800 3Date: Tue, 21 Feb 2023 12:46:10 -0800
4Subject: [PATCH] compiler-rt: Undef _TIME_BITS along with _FILE_OFFSET_BITS in 4Subject: [PATCH] compiler-rt: Undef _TIME_BITS along with _FILE_OFFSET_BITS in
diff --git a/recipes-devtools/clang/clang/0032-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch b/recipes-devtools/clang/clang/0031-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch
index 1dbf292..48e3d7a 100644
--- a/recipes-devtools/clang/clang/0032-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch
+++ b/recipes-devtools/clang/clang/0031-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch
@@ -1,4 +1,4 @@
1From fe32a4031f8fa3cd33685121acee6d3afd3695a6 Mon Sep 17 00:00:00 2001 1From ac240fbfa07115791271abdbfde256ea0f0c64c6 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Thu, 31 Aug 2023 18:14:47 +0200 3Date: Thu, 31 Aug 2023 18:14:47 +0200
4Subject: [PATCH] ToolChains/Gnu.cpp: ARMLibDirs search also in lib32 4Subject: [PATCH] ToolChains/Gnu.cpp: ARMLibDirs search also in lib32
@@ -55,7 +55,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
55 2 files changed, 2 insertions(+), 1 deletion(-) 55 2 files changed, 2 insertions(+), 1 deletion(-)
56 56
57diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp 57diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
58index f081a778cfe9..b3d656d30a78 100644 58index 4ec4976a6a0c..d5cfb99686d1 100644
59--- a/clang/lib/Driver/ToolChains/Gnu.cpp 59--- a/clang/lib/Driver/ToolChains/Gnu.cpp
60+++ b/clang/lib/Driver/ToolChains/Gnu.cpp 60+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
61@@ -2475,7 +2475,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( 61@@ -2475,7 +2475,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
@@ -68,7 +68,7 @@ index f081a778cfe9..b3d656d30a78 100644
68 static const char *const ARMHFTriples[] = {"arm-linux-gnueabihf", 68 static const char *const ARMHFTriples[] = {"arm-linux-gnueabihf",
69 "armv7hl-redhat-linux-gnueabi", 69 "armv7hl-redhat-linux-gnueabi",
70diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp 70diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
71index 41818470cf85..3224acee8710 100644 71index 9af52769b09a..33e8ae99ba1d 100644
72--- a/clang/lib/Driver/ToolChains/Linux.cpp 72--- a/clang/lib/Driver/ToolChains/Linux.cpp
73+++ b/clang/lib/Driver/ToolChains/Linux.cpp 73+++ b/clang/lib/Driver/ToolChains/Linux.cpp
74@@ -205,6 +205,7 @@ static StringRef getOSLibDir(const llvm::Triple &Triple, const ArgList &Args) { 74@@ -205,6 +205,7 @@ static StringRef getOSLibDir(const llvm::Triple &Triple, const ArgList &Args) {
diff --git a/recipes-devtools/clang/clang/0033-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch b/recipes-devtools/clang/clang/0032-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch
index 112724a..019ed3d 100644
--- a/recipes-devtools/clang/clang/0033-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch
+++ b/recipes-devtools/clang/clang/0032-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch
@@ -1,4 +1,4 @@
1From 8ba03ec78308efe868d7c97f6b2c11caf0beb4e2 Mon Sep 17 00:00:00 2001 1From 05d5bc0e32b8275f91421b24fc86494b9e81815d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 3 Feb 2024 16:47:10 -0800 3Date: Sat, 3 Feb 2024 16:47:10 -0800
4Subject: [PATCH] clang/llvm: Add OE specific ABI triple for N32 ABI 4Subject: [PATCH] clang/llvm: Add OE specific ABI triple for N32 ABI
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 3 files changed, 6 insertions(+), 3 deletions(-) 14 3 files changed, 6 insertions(+), 3 deletions(-)
15 15
16diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp 16diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
17index b3d656d30a78..f94606180099 100644 17index d5cfb99686d1..926455ac6680 100644
18--- a/clang/lib/Driver/ToolChains/Gnu.cpp 18--- a/clang/lib/Driver/ToolChains/Gnu.cpp
19+++ b/clang/lib/Driver/ToolChains/Gnu.cpp 19+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
20@@ -2538,6 +2538,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( 20@@ -2538,6 +2538,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
@@ -26,7 +26,7 @@ index b3d656d30a78..f94606180099 100644
26 static const char *const MIPSN32ELLibDirs[] = {"/lib32"}; 26 static const char *const MIPSN32ELLibDirs[] = {"/lib32"};
27 static const char *const MIPSN32ELTriples[] = { 27 static const char *const MIPSN32ELTriples[] = {
28diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp 28diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
29index 3224acee8710..5302e870d30d 100644 29index 33e8ae99ba1d..58badf20d1b3 100644
30--- a/clang/lib/Driver/ToolChains/Linux.cpp 30--- a/clang/lib/Driver/ToolChains/Linux.cpp
31+++ b/clang/lib/Driver/ToolChains/Linux.cpp 31+++ b/clang/lib/Driver/ToolChains/Linux.cpp
32@@ -136,7 +136,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, 32@@ -136,7 +136,7 @@ std::string Linux::getMultiarchTriple(const Driver &D,
@@ -48,27 +48,27 @@ index 3224acee8710..5302e870d30d 100644
48 return MT; 48 return MT;
49 if (D.getVFS().exists(concat(SysRoot, "/lib/mips64el-linux-gnu"))) 49 if (D.getVFS().exists(concat(SysRoot, "/lib/mips64el-linux-gnu")))
50diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp 50diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp
51index fb9cbeb30351..4fa949a47791 100644 51index 32adf92c47bf..3411e3c968a2 100644
52--- a/llvm/lib/TargetParser/Triple.cpp 52--- a/llvm/lib/TargetParser/Triple.cpp
53+++ b/llvm/lib/TargetParser/Triple.cpp 53+++ b/llvm/lib/TargetParser/Triple.cpp
54@@ -318,7 +318,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { 54@@ -319,7 +319,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) {
55 case EABIHF: return "eabihf";
56 case GNU: return "gnu"; 55 case GNU: return "gnu";
56 case GNUT64: return "gnut64";
57 case GNUABI64: return "gnuabi64"; 57 case GNUABI64: return "gnuabi64";
58- case GNUABIN32: return "gnuabin32"; 58- case GNUABIN32: return "gnuabin32";
59+ case GNUABIN32: return "gnun32"; 59+ case GNUABIN32: return "gnun32";
60 case GNUEABI: return "gnueabi"; 60 case GNUEABI: return "gnueabi";
61 case GNUEABIT64: return "gnueabit64";
61 case GNUEABIHF: return "gnueabihf"; 62 case GNUEABIHF: return "gnueabihf";
62 case GNUF32: return "gnuf32"; 63@@ -695,6 +695,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
63@@ -692,6 +692,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
64 .StartsWith("eabihf", Triple::EABIHF) 64 .StartsWith("eabihf", Triple::EABIHF)
65 .StartsWith("eabi", Triple::EABI) 65 .StartsWith("eabi", Triple::EABI)
66 .StartsWith("gnuabin32", Triple::GNUABIN32) 66 .StartsWith("gnuabin32", Triple::GNUABIN32)
67+ .StartsWith("gnun32", Triple::GNUABIN32) 67+ .StartsWith("gnun32", Triple::GNUABIN32)
68 .StartsWith("gnuabi64", Triple::GNUABI64) 68 .StartsWith("gnuabi64", Triple::GNUABI64)
69 .StartsWith("gnueabihft64", Triple::GNUEABIHFT64)
69 .StartsWith("gnueabihf", Triple::GNUEABIHF) 70 .StartsWith("gnueabihf", Triple::GNUEABIHF)
70 .StartsWith("gnueabi", Triple::GNUEABI) 71@@ -1002,6 +1003,7 @@ Triple::Triple(const Twine &Str)
71@@ -996,6 +997,7 @@ Triple::Triple(const Twine &Str)
72 Environment = 72 Environment =
73 StringSwitch<Triple::EnvironmentType>(Components[0]) 73 StringSwitch<Triple::EnvironmentType>(Components[0])
74 .StartsWith("mipsn32", Triple::GNUABIN32) 74 .StartsWith("mipsn32", Triple::GNUABIN32)
diff --git a/recipes-devtools/clang/clang/0034-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch b/recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch
index 9f70bf2..97554cb 100644
--- a/recipes-devtools/clang/clang/0034-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch
+++ b/recipes-devtools/clang/clang/0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch
@@ -1,4 +1,4 @@
1From 1532564c3d7c025432caefc17480cf89eed696b8 Mon Sep 17 00:00:00 2001 1From a1b090d189ebc5ccda088f222a927fb6e225588d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 14 May 2024 22:04:43 -0700 3Date: Tue, 14 May 2024 22:04:43 -0700
4Subject: [PATCH] llvm: Add libunwind.pc.in and llvm-config scripts 4Subject: [PATCH] llvm: Add libunwind.pc.in and llvm-config scripts
diff --git a/recipes-devtools/clang/clang/0035-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch b/recipes-devtools/clang/clang/0034-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch
index 7af34b5..0eebe63 100644
--- a/recipes-devtools/clang/clang/0035-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch
+++ b/recipes-devtools/clang/clang/0034-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch
@@ -1,4 +1,4 @@
1From cb6f0fa134a9bb1dcf2b7f5f2f683410853b5cde Mon Sep 17 00:00:00 2001 1From 47a9749e0dcd1c7dd85922610434ce63d5fe8bd6 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@gmail.com> 2From: Martin Jansa <martin.jansa@gmail.com>
3Date: Fri, 13 Sep 2024 13:38:08 +0200 3Date: Fri, 13 Sep 2024 13:38:08 +0200
4Subject: [PATCH] scan-build-py: respect LLVM_LIBDIR_SUFFIX like other tools do 4Subject: [PATCH] scan-build-py: respect LLVM_LIBDIR_SUFFIX like other tools do
diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb
index 0079d0f..56b569f 100644
--- a/recipes-devtools/clang/clang_git.bb
+++ b/recipes-devtools/clang/clang_git.bb
@@ -1,7 +1,16 @@
1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "LLVM based C/C++ compiler" 4SUMMARY = "LLVM based C/C++ compiler"
5DESCRIPTION = "Clang is an LLVM based C/C++/Objective-C compiler, \
6 which aims to deliver amazingly fast compiles, \
7 extremely useful error and warning messages and \
8 to provide a platform for building great source \
9 level tools. The Clang Static Analyzer and \
10 clang-tidy are tools that automatically find bugs \
11 in your code, and are great examples of the sort \
12 of tools that can be built using the Clang frontend \
13 as a library to parse C/C++ code"
5HOMEPAGE = "http://clang.llvm.org/" 14HOMEPAGE = "http://clang.llvm.org/"
6SECTION = "devel" 15SECTION = "devel"
7 16
@@ -197,7 +206,7 @@ EXTRA_OECMAKE:append:class-target = "\
197" 206"
198 207
199DEPENDS = "binutils zlib zstd libffi libxml2 libxml2-native ninja-native swig-native" 208DEPENDS = "binutils zlib zstd libffi libxml2 libxml2-native ninja-native swig-native"
200DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_ARCH} virtual/${TARGET_PREFIX}binutils nativesdk-python3" 209DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_SYS} virtual/${TARGET_PREFIX}binutils nativesdk-python3"
201DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} python3 compiler-rt libcxx" 210DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} python3 compiler-rt libcxx"
202 211
203RRECOMMENDS:${PN} = "binutils" 212RRECOMMENDS:${PN} = "binutils"
@@ -294,6 +303,9 @@ do_install:append:class-nativesdk () {
294 sed -i -e 's,${B},,g' ${D}${libdir}/cmake/llvm/LLVMConfig.cmake 303 sed -i -e 's,${B},,g' ${D}${libdir}/cmake/llvm/LLVMConfig.cmake
295} 304}
296 305
306PROVIDES:append:class-native = " llvm-native"
307PROVIDES:append:class-target = " llvm"
308
297PACKAGES =+ "${PN}-libllvm ${PN}-lldb-python ${PN}-libclang-cpp ${PN}-tidy ${PN}-format ${PN}-tools \ 309PACKAGES =+ "${PN}-libllvm ${PN}-lldb-python ${PN}-libclang-cpp ${PN}-tidy ${PN}-format ${PN}-tools \
298 libclang lldb lldb-server liblldb llvm-linker-tools" 310 libclang lldb lldb-server liblldb llvm-linker-tools"
299 311
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc
index 9246147..eb8d4ef 100644
--- a/recipes-devtools/clang/common.inc
+++ b/recipes-devtools/clang/common.inc
@@ -15,7 +15,7 @@ LICENSE = "Apache-2.0-with-LLVM-exception"
15RELEASE ?= "${PV}" 15RELEASE ?= "${PV}"
16BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz" 16BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz"
17SOURCEDIR ?= "llvm-project-${PV}.src" 17SOURCEDIR ?= "llvm-project-${PV}.src"
18SRC_URI[sha256sum] = "3666f01fc52d8a0b0da83e107d74f208f001717824be0b80007f529453aa1e19" 18SRC_URI[sha256sum] = "3aa2d2d2c7553164ad5c6f3b932b31816e422635e18620c9349a7da95b98d811"
19 19
20SRC_URI = "\ 20SRC_URI = "\
21 ${BASEURI} \ 21 ${BASEURI} \
@@ -32,28 +32,27 @@ SRC_URI = "\
32 file://0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch \ 32 file://0011-clang-Add-lpthread-and-ldl-along-with-lunwind-for-st.patch \
33 file://0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch \ 33 file://0012-Pass-PYTHON_EXECUTABLE-when-cross-compiling-for-nati.patch \
34 file://0013-Check-for-atomic-double-intrinsics.patch \ 34 file://0013-Check-for-atomic-double-intrinsics.patch \
35 file://0014-libcxx-Add-compiler-runtime-library-to-link-step-for.patch \ 35 file://0014-cmake-Fix-configure-for-packages-using-find_package.patch \
36 file://0015-cmake-Fix-configure-for-packages-using-find_package.patch \ 36 file://0015-clang-Fix-resource-dir-location-for-cross-toolchains.patch \
37 file://0016-clang-Fix-resource-dir-location-for-cross-toolchains.patch \ 37 file://0016-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch \
38 file://0017-clang-driver-Add-dyld-prefix-when-checking-sysroot-f.patch \ 38 file://0017-clang-Use-python3-in-python-scripts.patch \
39 file://0018-clang-Use-python3-in-python-scripts.patch \ 39 file://0018-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \
40 file://0019-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ 40 file://0019-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch \
41 file://0020-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch \ 41 file://0020-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch \
42 file://0021-compiler-rt-Do-not-use-backtrace-APIs-on-non-glibc-l.patch \ 42 file://0021-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch \
43 file://0022-clang-Fix-x86-triple-for-non-debian-multiarch-linux-.patch \ 43 file://0022-libunwind-Added-unw_backtrace-method.patch \
44 file://0023-libunwind-Added-unw_backtrace-method.patch \ 44 file://0023-clang-Do-not-use-install-relative-libc-headers.patch \
45 file://0024-clang-Do-not-use-install-relative-libc-headers.patch \ 45 file://0024-Fix-lib-paths-for-OpenEmbedded-Host.patch \
46 file://0025-Fix-lib-paths-for-OpenEmbedded-Host.patch \ 46 file://0025-Correct-library-search-path-for-OpenEmbedded-Host.patch \
47 file://0026-Correct-library-search-path-for-OpenEmbedded-Host.patch \ 47 file://0026-lldb-Link-with-libatomic-on-x86.patch \
48 file://0027-lldb-Link-with-libatomic-on-x86.patch \ 48 file://0027-compiler-rt-Enable-__int128-for-ppc32.patch \
49 file://0028-compiler-rt-Enable-__int128-for-ppc32.patch \ 49 file://0028-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch \
50 file://0029-llvm-Do-not-use-cmake-infra-to-detect-libzstd.patch \ 50 file://0029-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch \
51 file://0030-compiler-rt-Fix-stat-struct-s-size-for-O32-ABI.patch \ 51 file://0030-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch \
52 file://0031-compiler-rt-Undef-_TIME_BITS-along-with-_FILE_OFFSET.patch \ 52 file://0031-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch \
53 file://0032-ToolChains-Gnu.cpp-ARMLibDirs-search-also-in-lib32.patch \ 53 file://0032-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch \
54 file://0033-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch \ 54 file://0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch \
55 file://0034-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch \ 55 file://0034-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch \
56 file://0035-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch \
57" 56"
58# Fallback to no-PIE if not set 57# Fallback to no-PIE if not set
59GCCPIE ??= "" 58GCCPIE ??= ""
diff --git a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb
index 2ad9a6d..acd5516 100644
--- a/recipes-devtools/clang/compiler-rt-sanitizers_git.bb
+++ b/recipes-devtools/clang/compiler-rt-sanitizers_git.bb
@@ -1,7 +1,9 @@
1# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "LLVM based C/C++ compiler Runtime" 4SUMMARY = "LLVM based C/C++ compiler Sanitizers Runtime"
5DESCRIPTION = "Runtime libraries that are required \
6 to run the code with sanitizer instrumentation"
5HOMEPAGE = "http://compiler-rt.llvm.org/" 7HOMEPAGE = "http://compiler-rt.llvm.org/"
6SECTION = "base" 8SECTION = "base"
7 9
@@ -17,7 +19,7 @@ TUNE_CCARGS:remove = "-no-integrated-as"
17 19
18DEPENDS += "ninja-native virtual/crypt compiler-rt" 20DEPENDS += "ninja-native virtual/crypt compiler-rt"
19DEPENDS:append:class-native = " clang-native libxcrypt-native" 21DEPENDS:append:class-native = " clang-native libxcrypt-native"
20DEPENDS:append:class-nativesdk = " clang-native clang-crosssdk-${SDK_ARCH} nativesdk-libxcrypt" 22DEPENDS:append:class-nativesdk = " clang-native clang-crosssdk-${SDK_SYS} nativesdk-libxcrypt"
21 23
22PACKAGECONFIG ??= "" 24PACKAGECONFIG ??= ""
23PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF" 25PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF"
@@ -74,10 +76,11 @@ EXTRA_OECMAKE:append:powerpc = " -DCOMPILER_RT_DEFAULT_TARGET_ARCH=powerpc "
74do_install:append () { 76do_install:append () {
75 if [ -n "${LLVM_LIBDIR_SUFFIX}" ]; then 77 if [ -n "${LLVM_LIBDIR_SUFFIX}" ]; then
76 mkdir -p ${D}${nonarch_libdir}/clang 78 mkdir -p ${D}${nonarch_libdir}/clang
77 mv ${D}${libdir}/clang/${MAJOR_VER} ${D}${nonarch_libdir}/clang/${MAJOR_VER} 79 mv ${D}${libdir}/clang/${MAJOR_VER} ${D}${nonarch_libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}
78 rmdir --ignore-fail-on-non-empty ${D}${libdir} 80 rmdir --ignore-fail-on-non-empty ${D}${libdir}/clang ${D}${libdir}
81 else
82 mv ${D}${libdir}/clang/${MAJOR_VER} ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}
79 fi 83 fi
80 ln -sf ${MAJOR_VER} ${D}${libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}
81 # Already shipped with compile-rt Orc support 84 # Already shipped with compile-rt Orc support
82 rm -rf ${D}${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/liborc_rt-*.a 85 rm -rf ${D}${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/liborc_rt-*.a
83 rm -rf ${D}${nonarch_libdir}/clang/${MAJOR_VER}/include/orc/ 86 rm -rf ${D}${nonarch_libdir}/clang/${MAJOR_VER}/include/orc/
@@ -88,7 +91,7 @@ FILES:${PN} += "${nonarch_libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER} \
88 ${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/lib*${SOLIBSDEV} \ 91 ${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/lib*${SOLIBSDEV} \
89 ${nonarch_libdir}/clang/${MAJOR_VER}/*.txt \ 92 ${nonarch_libdir}/clang/${MAJOR_VER}/*.txt \
90 ${nonarch_libdir}/clang/${MAJOR_VER}/share/*.txt" 93 ${nonarch_libdir}/clang/${MAJOR_VER}/share/*.txt"
91FILES:${PN}-staticdev += "${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/*.a" 94FILES:${PN}-staticdev += "${nonarch_libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib/linux/*.a"
92FILES:${PN}-dev += "${datadir} ${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/*.syms \ 95FILES:${PN}-dev += "${datadir} ${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/*.syms \
93 ${nonarch_libdir}/clang/${MAJOR_VER}/include \ 96 ${nonarch_libdir}/clang/${MAJOR_VER}/include \
94 ${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/clang_rt.crt*.o \ 97 ${nonarch_libdir}/clang/${MAJOR_VER}/lib/linux/clang_rt.crt*.o \
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb
index 84878aa..080e53b 100644
--- a/recipes-devtools/clang/compiler-rt_git.bb
+++ b/recipes-devtools/clang/compiler-rt_git.bb
@@ -1,7 +1,11 @@
1# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "LLVM based C/C++ compiler Runtime" 4SUMMARY = "LLVM based C/C++ compiler Runtime"
5DESCRIPTIOM = "Simple builtin library that provides an \
6 implementation of the low-level target-specific \
7 hooks required by code generation and other runtime \
8 components"
5HOMEPAGE = "http://compiler-rt.llvm.org/" 9HOMEPAGE = "http://compiler-rt.llvm.org/"
6SECTION = "base" 10SECTION = "base"
7 11
@@ -22,28 +26,19 @@ INHIBIT_DEFAULT_DEPS = "1"
22 26
23DEPENDS += "ninja-native libgcc" 27DEPENDS += "ninja-native libgcc"
24DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime" 28DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc gcc-runtime"
25DEPENDS:append:class-nativesdk = " clang-native clang-crosssdk-${SDK_ARCH} nativesdk-gcc-runtime" 29DEPENDS:append:class-nativesdk = " clang-native clang-crosssdk-${SDK_SYS} nativesdk-gcc-runtime"
26DEPENDS:append:class-native = " clang-native" 30DEPENDS:append:class-native = " clang-native"
27 31
28# Trick clang.bbclass into not creating circular dependencies 32# Trick clang.bbclass into not creating circular dependencies
29UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" 33UNWINDLIB:class-nativesdk:toolchain-clang = "--unwindlib=libgcc"
30COMPILER_RT:class-nativesdk:toolchain-clang:runtime-llvm = "-rtlib=libgcc --unwindlib=libgcc" 34COMPILER_RT:class-nativesdk:toolchain-clang = "-rtlib=libgcc --unwindlib=libgcc"
31LIBCPLUSPLUS:class-nativesdk:toolchain-clang:runtime-llvm = "-stdlib=libstdc++" 35LIBCPLUSPLUS:class-nativesdk:toolchain-clang = "-stdlib=libstdc++"
32 36UNWINDLIB:class-native:toolchain-clang = "--unwindlib=libgcc"
33CXXFLAGS += "-stdlib=libstdc++" 37COMPILER_RT:class-native:toolchain-clang = "-rtlib=libgcc --unwindlib=libgcc"
34LDFLAGS += "-unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++" 38LIBCPLUSPLUS:class-native:toolchain-clang = "-stdlib=libstdc++"
35BUILD_CXXFLAGS += "-stdlib=libstdc++" 39UNWINDLIB:class-target:toolchain-clang = "--unwindlib=libgcc"
36BUILD_LDFLAGS += "-unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++" 40COMPILER_RT:class-target:toolchain-clang = "-rtlib=libgcc --unwindlib=libgcc"
37BUILD_CPPFLAGS:remove = "-stdlib=libc++" 41LIBCPLUSPLUS:class-target:toolchain-clang = "-stdlib=libstdc++"
38BUILD_LDFLAGS:remove = "-stdlib=libc++ -lc++abi"
39
40BUILD_CC:toolchain-clang = "${CCACHE}clang"
41BUILD_CXX:toolchain-clang = "${CCACHE}clang++"
42BUILD_CPP:toolchain-clang = "${CCACHE}clang -E"
43BUILD_CCLD:toolchain-clang = "${CCACHE}clang"
44BUILD_RANLIB:toolchain-clang = "llvm-ranlib"
45BUILD_AR:toolchain-clang = "llvm-ar"
46BUILD_NM:toolchain-clang = "llvm-nm"
47 42
48PACKAGECONFIG ??= "" 43PACKAGECONFIG ??= ""
49PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF" 44PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF"
@@ -128,5 +123,8 @@ BBCLASSEXTEND = "native nativesdk"
128ALLOW_EMPTY:${PN} = "1" 123ALLOW_EMPTY:${PN} = "1"
129ALLOW_EMPTY:${PN}-dev = "1" 124ALLOW_EMPTY:${PN}-dev = "1"
130 125
131TOOLCHAIN:forcevariable = "clang" 126TOOLCHAIN = "clang"
127# Overrides defaults from clang.bbclass
128TOOLCHAIN:class-nativesdk = "clang"
129TOOLCHAIN:class-native = "clang"
132SYSROOT_DIRS:append:class-target = " ${nonarch_libdir}" 130SYSROOT_DIRS:append:class-target = " ${nonarch_libdir}"
diff --git a/recipes-devtools/clang/libclc_git.bb b/recipes-devtools/clang/libclc_git.bb
index 16ab833..0d43133 100644
--- a/recipes-devtools/clang/libclc_git.bb
+++ b/recipes-devtools/clang/libclc_git.bb
@@ -1,4 +1,4 @@
1DESCRIPTION = "LLVM based OpenCL runtime support library" 1SUMMARY = "Implementation of the library requirements of the OpenCL 1.1+ C programming language"
2HOMEPAGE = "http://libclc.llvm.org/" 2HOMEPAGE = "http://libclc.llvm.org/"
3SECTION = "libs" 3SECTION = "libs"
4 4
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb
index 3f2f6bb..c7f3a77 100644
--- a/recipes-devtools/clang/libcxx_git.bb
+++ b/recipes-devtools/clang/libcxx_git.bb
@@ -1,7 +1,7 @@
1# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11" 4SUMMARY = "libc++ is a new implementation of the C++ standard library, targeting C++11 and above"
5HOMEPAGE = "http://libcxx.llvm.org/" 5HOMEPAGE = "http://libcxx.llvm.org/"
6SECTION = "base" 6SECTION = "base"
7 7
@@ -21,26 +21,19 @@ PACKAGECONFIG[unwind-shared] = "-DLIBUNWIND_ENABLE_SHARED=ON,-DLIBUNWIND_ENABLE_
21 21
22DEPENDS += "ninja-native" 22DEPENDS += "ninja-native"
23DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs" 23DEPENDS:append:class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs"
24DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_ARCH} nativesdk-compiler-rt" 24DEPENDS:append:class-nativesdk = " clang-crosssdk-${SDK_SYS} nativesdk-compiler-rt"
25DEPENDS:append:class-native = " clang-native" 25DEPENDS:append:class-native = " clang-native compiler-rt-native"
26
27LIBCPLUSPLUS = ""
28COMPILER_RT ?= "-rtlib=compiler-rt"
29 26
27COMPILER_RT ?= "${@bb.utils.contains("PACKAGECONFIG", "compiler-rt", "-rtlib=compiler-rt", "-rtlib=libgcc", d)}"
28UNWINDLIB ?= "${@bb.utils.contains("PACKAGECONFIG", "unwind", "-unwindlib=none", "-unwindlib=libgcc", d)}"
29LIBCPLUSPLUS ?= "-stdlib=libstdc++"
30# Trick clang.bbclass into not creating circular dependencies 30# Trick clang.bbclass into not creating circular dependencies
31UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" 31UNWINDLIB:class-nativesdk = "-unwindlib=libgcc"
32COMPILER_RT:class-nativesdk = "-rtlib=libgcc --unwindlib=libgcc"
33LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++" 32LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++"
33UNWINDLIB:class-native = "-unwindlib=libgcc"
34LIBCPLUSPLUS:class-native = "-stdlib=libstdc++"
34 35
35CC:append:toolchain-clang:class-native = " -unwindlib=libgcc -rtlib=libgcc" 36LDFLAGS:append = " ${UNWINDLIB}"
36CC:append:toolchain-clang:class-nativesdk = " -unwindlib=libgcc -rtlib=libgcc"
37
38CXXFLAGS += "-stdlib=libstdc++"
39LDFLAGS += "-unwindlib=libgcc -stdlib=libstdc++"
40BUILD_CXXFLAGS += "-stdlib=libstdc++"
41BUILD_LDFLAGS += "-unwindlib=libgcc -rtlib=libgcc -stdlib=libstdc++"
42BUILD_CPPFLAGS:remove = "-stdlib=libc++"
43BUILD_LDFLAGS:remove = "-stdlib=libc++ -lc++abi"
44 37
45INHIBIT_DEFAULT_DEPS = "1" 38INHIBIT_DEFAULT_DEPS = "1"
46 39
@@ -49,8 +42,8 @@ LIC_FILES_CHKSUM = "file://libcxx/LICENSE.TXT;md5=55d89dd7eec8d3b4204b680e27da39
49 file://libunwind/LICENSE.TXT;md5=f66970035d12f196030658b11725e1a1 \ 42 file://libunwind/LICENSE.TXT;md5=f66970035d12f196030658b11725e1a1 \
50" 43"
51 44
52OECMAKE_TARGET_COMPILE = "cxxabi cxx" 45OECMAKE_TARGET_COMPILE = "${@bb.utils.contains("TC_CXX_RUNTIME", "llvm", "unwind", "", d)} cxxabi cxx"
53OECMAKE_TARGET_INSTALL = "install-cxx install-cxxabi ${@bb.utils.contains("TC_CXX_RUNTIME", "llvm", "install-unwind", "", d)}" 46OECMAKE_TARGET_INSTALL = "${@bb.utils.contains("TC_CXX_RUNTIME", "llvm", "install-unwind", "", d)} install-cxxabi install-cxx"
54 47
55OECMAKE_SOURCEPATH = "${S}/llvm" 48OECMAKE_SOURCEPATH = "${S}/llvm"
56EXTRA_OECMAKE += "\ 49EXTRA_OECMAKE += "\
@@ -116,4 +109,7 @@ FILES:libunwind:runtime-llvm = "${libdir}/libunwind.so.*"
116FILES:${PN}-dev += "${datadir}/libc++/v1/ ${libdir}/libc++.modules.json" 109FILES:${PN}-dev += "${datadir}/libc++/v1/ ${libdir}/libc++.modules.json"
117 110
118BBCLASSEXTEND = "native nativesdk" 111BBCLASSEXTEND = "native nativesdk"
119TOOLCHAIN:forcevariable = "clang" 112TOOLCHAIN = "clang"
113# Overrides defaults from clang.bbclass
114TOOLCHAIN:class-nativesdk = "clang"
115TOOLCHAIN:class-native = "clang"
diff --git a/recipes-devtools/clang/nativesdk-clang-glue.bb b/recipes-devtools/clang/nativesdk-clang-glue.bb
index a0b9374..8e5622f 100644
--- a/recipes-devtools/clang/nativesdk-clang-glue.bb
+++ b/recipes-devtools/clang/nativesdk-clang-glue.bb
@@ -1,7 +1,7 @@
1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2014 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "SDK Cross compiler wrappers for LLVM based C/C++ compiler" 4SUMMARY = "SDK Cross compiler wrappers for LLVM based C/C++ compiler"
5HOMEPAGE = "http://clang.llvm.org/" 5HOMEPAGE = "http://clang.llvm.org/"
6LICENSE = "Apache-2.0-with-LLVM-exception" 6LICENSE = "Apache-2.0-with-LLVM-exception"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab" 7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0-with-LLVM-exception;md5=0bcd48c3bdfef0c9d9fd17726e4b7dab"
diff --git a/recipes-devtools/clang/openmp_git.bb b/recipes-devtools/clang/openmp_git.bb
index 34f6e4a..549df0e 100644
--- a/recipes-devtools/clang/openmp_git.bb
+++ b/recipes-devtools/clang/openmp_git.bb
@@ -1,7 +1,7 @@
1# Copyright (C) 2017 Khem Raj <raj.khem@gmail.com> 1# Copyright (C) 2017 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4DESCRIPTION = "LLVM based C/C++ compiler Runtime" 4SUMMARY = "LLVM OpenMP compiler Runtime"
5HOMEPAGE = "https://openmp.llvm.org/" 5HOMEPAGE = "https://openmp.llvm.org/"
6SECTION = "libs" 6SECTION = "libs"
7 7