diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-02-24 21:29:16 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-03-21 21:30:56 -0700 |
commit | c28faf337a3a8b15115bdab46c640b3ad6ce9ef8 (patch) | |
tree | 4c5d1fb72fbee03f94fc43bd3576f03bfd73169b | |
parent | d5b9fdbed63f55882d46b104ed0234a7de4d35a4 (diff) | |
download | meta-clang-c28faf337a3a8b15115bdab46c640b3ad6ce9ef8.tar.gz |
clang: Upgrade to 20.x release
Release Notes clang-extra-tools [4] lld [3] clang [2] llvm [1]
[1] https://releases.llvm.org/20.1.0/docs/ReleaseNotes.html
[2] https://releases.llvm.org/20.1.0/tools/clang/docs/ReleaseNotes.html
[3] https://releases.llvm.org/20.1.0/tools/lld/docs/ReleaseNotes.html
[4] https://releases.llvm.org/20.1.0/tools/clang/tools/extra/docs/ReleaseNotes.html
Signed-off-by: Khem Raj <raj.khem@gmail.com>
37 files changed, 189 insertions, 147 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 9723488..49245d3 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc | |||
@@ -3,9 +3,9 @@ LLVM_DIR = "llvm${LLVM_RELEASE}" | |||
3 | 3 | ||
4 | LLVM_HTTP ?= "https://github.com/llvm" | 4 | LLVM_HTTP ?= "https://github.com/llvm" |
5 | 5 | ||
6 | MAJOR_VER = "19" | 6 | MAJOR_VER = "20" |
7 | MINOR_VER = "1" | 7 | MINOR_VER = "1" |
8 | PATCH_VER = "7" | 8 | PATCH_VER = "0" |
9 | # could be 'rcX' or 'git' or empty ( for release ) | 9 | # could be 'rcX' or 'git' or empty ( for release ) |
10 | VER_SUFFIX = "" | 10 | VER_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 f2cc81e..9c8baa9 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 @@ | |||
1 | From 1ae8003c398cb280038301697860ef5769687648 Mon Sep 17 00:00:00 2001 | 1 | From dfb3bf25e32b44efedf3ded9f6511e83a93a8f6e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 27 Aug 2017 10:37:49 -0700 | 3 | Date: Sun, 27 Aug 2017 10:37:49 -0700 |
4 | Subject: [PATCH] libcxxabi: Find libunwind headers when | 4 | Subject: [PATCH] libcxxabi: Find libunwind headers when |
@@ -18,10 +18,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
18 | 1 file changed, 10 insertions(+), 5 deletions(-) | 18 | 1 file changed, 10 insertions(+), 5 deletions(-) |
19 | 19 | ||
20 | diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt | 20 | diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt |
21 | index 43400c6e8d9a..cc0841112c0c 100644 | 21 | index 6dcfc51e5532..32478a62a058 100644 |
22 | --- a/libcxxabi/CMakeLists.txt | 22 | --- a/libcxxabi/CMakeLists.txt |
23 | +++ b/libcxxabi/CMakeLists.txt | 23 | +++ b/libcxxabi/CMakeLists.txt |
24 | @@ -423,7 +423,7 @@ set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH | 24 | @@ -465,7 +465,7 @@ set(LIBCXXABI_LIBUNWIND_PATH "${LIBCXXABI_LIBUNWIND_PATH}" CACHE PATH |
25 | "Specify path to libunwind source." FORCE) | 25 | "Specify path to libunwind source." FORCE) |
26 | 26 | ||
27 | if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | 27 | if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) |
@@ -30,7 +30,7 @@ index 43400c6e8d9a..cc0841112c0c 100644 | |||
30 | PATHS ${LIBCXXABI_LIBUNWIND_INCLUDES} | 30 | PATHS ${LIBCXXABI_LIBUNWIND_INCLUDES} |
31 | ${LIBCXXABI_LIBUNWIND_PATH}/include | 31 | ${LIBCXXABI_LIBUNWIND_PATH}/include |
32 | ${CMAKE_BINARY_DIR}/${LIBCXXABI_LIBUNWIND_INCLUDES} | 32 | ${CMAKE_BINARY_DIR}/${LIBCXXABI_LIBUNWIND_INCLUDES} |
33 | @@ -434,18 +434,23 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) | 33 | @@ -476,18 +476,23 @@ if (LIBCXXABI_USE_LLVM_UNWINDER OR LLVM_NATIVE_ARCH MATCHES ARM) |
34 | NO_CMAKE_FIND_ROOT_PATH | 34 | NO_CMAKE_FIND_ROOT_PATH |
35 | ) | 35 | ) |
36 | 36 | ||
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 e8981b8..6082b80 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 @@ | |||
1 | From c0462b384da7a882ea924ea47476c3cb49feae46 Mon Sep 17 00:00:00 2001 | 1 | From 2fe113db0952e97d85b2c3ce92a1c2145f542801 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 | 3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 |
4 | Subject: [PATCH] compiler-rt: support a new embedded linux target | 4 | Subject: [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 0cf0a89..96003c7 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 @@ | |||
1 | From 4f2e69944e8a42da9bd1f7d49399dc3d0fad4859 Mon Sep 17 00:00:00 2001 | 1 | From 2513eec8805008ff474f4ffcb0c579b9225535f9 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 19 May 2016 23:11:45 -0700 | 3 | Date: Thu, 19 May 2016 23:11:45 -0700 |
4 | Subject: [PATCH] compiler-rt: Simplify cross-compilation. Don't use | 4 | Subject: [PATCH] compiler-rt: Simplify cross-compilation. Don't use |
@@ -21,10 +21,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
21 | 1 file changed, 10 insertions(+), 1 deletion(-) | 21 | 1 file changed, 10 insertions(+), 1 deletion(-) |
22 | 22 | ||
23 | diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt | 23 | diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt |
24 | index 2207555b03a0..c28106378bdd 100644 | 24 | index 2c52788de56a..fe409704acc3 100644 |
25 | --- a/compiler-rt/CMakeLists.txt | 25 | --- a/compiler-rt/CMakeLists.txt |
26 | +++ b/compiler-rt/CMakeLists.txt | 26 | +++ b/compiler-rt/CMakeLists.txt |
27 | @@ -86,7 +86,16 @@ if (COMPILER_RT_STANDALONE_BUILD) | 27 | @@ -107,7 +107,16 @@ if (COMPILER_RT_STANDALONE_BUILD) |
28 | set(CMAKE_CXX_EXTENSIONS NO) | 28 | set(CMAKE_CXX_EXTENSIONS NO) |
29 | 29 | ||
30 | if (NOT LLVM_RUNTIMES_BUILD) | 30 | if (NOT LLVM_RUNTIMES_BUILD) |
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 8d8995b..2bac9c1 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 @@ | |||
1 | From 0d94f6e299bfa76da9be6451d9e759bc3f6d08a7 Mon Sep 17 00:00:00 2001 | 1 | From 54247325f65f7f8b97f73910548660402d64583b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 21 May 2016 00:33:20 +0000 | 3 | Date: Sat, 21 May 2016 00:33:20 +0000 |
4 | Subject: [PATCH] llvm: TargetLibraryInfo: Undefine libc functions if they are | 4 | Subject: [PATCH] llvm: TargetLibraryInfo: Undefine libc functions if they are |
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 21 insertions(+), 1 deletion(-) | 14 | 1 file changed, 21 insertions(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.def b/llvm/include/llvm/Analysis/TargetLibraryInfo.def | 16 | diff --git a/llvm/include/llvm/Analysis/TargetLibraryInfo.def b/llvm/include/llvm/Analysis/TargetLibraryInfo.def |
17 | index 623cdb4b6e0b..18bb48beb702 100644 | 17 | index db566b8ee610..578161f9c978 100644 |
18 | --- a/llvm/include/llvm/Analysis/TargetLibraryInfo.def | 18 | --- a/llvm/include/llvm/Analysis/TargetLibraryInfo.def |
19 | +++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.def | 19 | +++ b/llvm/include/llvm/Analysis/TargetLibraryInfo.def |
20 | @@ -1368,6 +1368,9 @@ TLI_DEFINE_STRING_INTERNAL("fopen") | 20 | @@ -1467,6 +1467,9 @@ TLI_DEFINE_STRING_INTERNAL("fopen") |
21 | TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr) | 21 | TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr) |
22 | 22 | ||
23 | /// FILE *fopen64(const char *filename, const char *opentype) | 23 | /// FILE *fopen64(const char *filename, const char *opentype) |
@@ -27,7 +27,7 @@ index 623cdb4b6e0b..18bb48beb702 100644 | |||
27 | TLI_DEFINE_ENUM_INTERNAL(fopen64) | 27 | TLI_DEFINE_ENUM_INTERNAL(fopen64) |
28 | TLI_DEFINE_STRING_INTERNAL("fopen64") | 28 | TLI_DEFINE_STRING_INTERNAL("fopen64") |
29 | TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr) | 29 | TLI_DEFINE_SIG_INTERNAL(Ptr, Ptr, Ptr) |
30 | @@ -1446,7 +1449,9 @@ TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Long, Int) | 30 | @@ -1545,7 +1548,9 @@ TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Long, Int) |
31 | TLI_DEFINE_ENUM_INTERNAL(fseeko) | 31 | TLI_DEFINE_ENUM_INTERNAL(fseeko) |
32 | TLI_DEFINE_STRING_INTERNAL("fseeko") | 32 | TLI_DEFINE_STRING_INTERNAL("fseeko") |
33 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, IntX, Int) | 33 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, IntX, Int) |
@@ -38,7 +38,7 @@ index 623cdb4b6e0b..18bb48beb702 100644 | |||
38 | /// int fseeko64(FILE *stream, off64_t offset, int whence) | 38 | /// int fseeko64(FILE *stream, off64_t offset, int whence) |
39 | TLI_DEFINE_ENUM_INTERNAL(fseeko64) | 39 | TLI_DEFINE_ENUM_INTERNAL(fseeko64) |
40 | TLI_DEFINE_STRING_INTERNAL("fseeko64") | 40 | TLI_DEFINE_STRING_INTERNAL("fseeko64") |
41 | @@ -1463,6 +1468,9 @@ TLI_DEFINE_STRING_INTERNAL("fstat") | 41 | @@ -1562,6 +1567,9 @@ TLI_DEFINE_STRING_INTERNAL("fstat") |
42 | TLI_DEFINE_SIG_INTERNAL(Int, Int, Ptr) | 42 | TLI_DEFINE_SIG_INTERNAL(Int, Int, Ptr) |
43 | 43 | ||
44 | /// int fstat64(int filedes, struct stat64 *buf) | 44 | /// int fstat64(int filedes, struct stat64 *buf) |
@@ -48,7 +48,7 @@ index 623cdb4b6e0b..18bb48beb702 100644 | |||
48 | TLI_DEFINE_ENUM_INTERNAL(fstat64) | 48 | TLI_DEFINE_ENUM_INTERNAL(fstat64) |
49 | TLI_DEFINE_STRING_INTERNAL("fstat64") | 49 | TLI_DEFINE_STRING_INTERNAL("fstat64") |
50 | TLI_DEFINE_SIG_INTERNAL(Int, Int, Ptr) | 50 | TLI_DEFINE_SIG_INTERNAL(Int, Int, Ptr) |
51 | @@ -1488,6 +1496,9 @@ TLI_DEFINE_STRING_INTERNAL("ftello") | 51 | @@ -1587,6 +1595,9 @@ TLI_DEFINE_STRING_INTERNAL("ftello") |
52 | TLI_DEFINE_SIG_INTERNAL(IntPlus, Ptr) | 52 | TLI_DEFINE_SIG_INTERNAL(IntPlus, Ptr) |
53 | 53 | ||
54 | /// off64_t ftello64(FILE *stream) | 54 | /// off64_t ftello64(FILE *stream) |
@@ -58,7 +58,7 @@ index 623cdb4b6e0b..18bb48beb702 100644 | |||
58 | TLI_DEFINE_ENUM_INTERNAL(ftello64) | 58 | TLI_DEFINE_ENUM_INTERNAL(ftello64) |
59 | TLI_DEFINE_STRING_INTERNAL("ftello64") | 59 | TLI_DEFINE_STRING_INTERNAL("ftello64") |
60 | TLI_DEFINE_SIG_INTERNAL(Int64, Ptr) | 60 | TLI_DEFINE_SIG_INTERNAL(Int64, Ptr) |
61 | @@ -1698,6 +1709,9 @@ TLI_DEFINE_STRING_INTERNAL("lstat") | 61 | @@ -1827,6 +1838,9 @@ TLI_DEFINE_STRING_INTERNAL("lstat") |
62 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | 62 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) |
63 | 63 | ||
64 | /// int lstat64(const char *path, struct stat64 *buf); | 64 | /// int lstat64(const char *path, struct stat64 *buf); |
@@ -68,7 +68,7 @@ index 623cdb4b6e0b..18bb48beb702 100644 | |||
68 | TLI_DEFINE_ENUM_INTERNAL(lstat64) | 68 | TLI_DEFINE_ENUM_INTERNAL(lstat64) |
69 | TLI_DEFINE_STRING_INTERNAL("lstat64") | 69 | TLI_DEFINE_STRING_INTERNAL("lstat64") |
70 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | 70 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) |
71 | @@ -2125,6 +2139,9 @@ TLI_DEFINE_STRING_INTERNAL("stat") | 71 | @@ -2334,6 +2348,9 @@ TLI_DEFINE_STRING_INTERNAL("stat") |
72 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | 72 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) |
73 | 73 | ||
74 | /// int stat64(const char *path, struct stat64 *buf); | 74 | /// int stat64(const char *path, struct stat64 *buf); |
@@ -78,7 +78,7 @@ index 623cdb4b6e0b..18bb48beb702 100644 | |||
78 | TLI_DEFINE_ENUM_INTERNAL(stat64) | 78 | TLI_DEFINE_ENUM_INTERNAL(stat64) |
79 | TLI_DEFINE_STRING_INTERNAL("stat64") | 79 | TLI_DEFINE_STRING_INTERNAL("stat64") |
80 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) | 80 | TLI_DEFINE_SIG_INTERNAL(Int, Ptr, Ptr) |
81 | @@ -2350,6 +2367,9 @@ TLI_DEFINE_STRING_INTERNAL("tmpfile") | 81 | @@ -2559,6 +2576,9 @@ TLI_DEFINE_STRING_INTERNAL("tmpfile") |
82 | TLI_DEFINE_SIG_INTERNAL(Ptr) | 82 | TLI_DEFINE_SIG_INTERNAL(Ptr) |
83 | 83 | ||
84 | /// FILE *tmpfile64(void) | 84 | /// FILE *tmpfile64(void) |
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 f767780..642e8f0 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 @@ | |||
1 | From 754c5869819c2dd008786a191f06385e6b97e19b Mon Sep 17 00:00:00 2001 | 1 | From ca2f7d327c1c7f63d0c438c5ad404e97c3f80428 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Kelly <mkelly@xevo.com> | 2 | From: Martin Kelly <mkelly@xevo.com> |
3 | Date: Fri, 19 May 2017 00:22:57 -0700 | 3 | Date: Fri, 19 May 2017 00:22:57 -0700 |
4 | Subject: [PATCH] llvm: allow env override of exe and libdir path | 4 | Subject: [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 9a4621b..3079f38 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 @@ | |||
1 | From df4c35c458e7f0b752e76500316ce3ab7583dd5b Mon Sep 17 00:00:00 2001 | 1 | From 9767cb6318047148affd5217ffaa27519a3cf921 Mon Sep 17 00:00:00 2001 |
2 | From: Dan McGregor <dan.mcgregor@usask.ca> | 2 | From: Dan McGregor <dan.mcgregor@usask.ca> |
3 | Date: Wed, 26 Apr 2017 20:29:41 -0600 | 3 | Date: Wed, 26 Apr 2017 20:29:41 -0600 |
4 | Subject: [PATCH] clang: driver: Check sysroot for ldso path | 4 | Subject: [PATCH] clang: driver: Check sysroot for ldso path |
@@ -15,10 +15,10 @@ 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 | ||
17 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 17 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
18 | index 35bf39069605..e4f593e462d6 100644 | 18 | index 0767fe6c5879..4d0c7e63c68e 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 | @@ -511,7 +511,11 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 21 | @@ -523,7 +523,11 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { |
22 | Triple.getEnvironment() == llvm::Triple::GNUEABIHFT64 || | 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 | ||
@@ -31,7 +31,7 @@ index 35bf39069605..e4f593e462d6 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 | @@ -566,11 +570,19 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 34 | @@ -578,11 +582,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 35bf39069605..e4f593e462d6 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 | @@ -588,6 +600,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 54 | @@ -600,6 +612,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 35bf39069605..e4f593e462d6 100644 | |||
62 | break; | 62 | break; |
63 | case llvm::Triple::systemz: | 63 | case llvm::Triple::systemz: |
64 | LibDir = "lib"; | 64 | LibDir = "lib"; |
65 | @@ -602,6 +618,10 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 65 | @@ -614,6 +630,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 fc46b3c..68abd21 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 @@ | |||
1 | From 7875b568926bbec5b7e3312c55991723c917493e Mon Sep 17 00:00:00 2001 | 1 | From 223fe5ca4f6e2b8e22aa8e900a6e35c34dc68c1f Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 19 May 2016 21:11:06 -0700 | 3 | Date: Thu, 19 May 2016 21:11:06 -0700 |
4 | Subject: [PATCH] clang: Driver/tools.cpp: Add -lssp_nonshared on musl | 4 | Subject: [PATCH] clang: Driver/tools.cpp: Add -lssp_nonshared on musl |
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 6 insertions(+) | 14 | 1 file changed, 6 insertions(+) |
15 | 15 | ||
16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
17 | index 5e9a655eaf82..3e301f2e1d95 100644 | 17 | index f56eeda3cb5f..9f7b9e8d42a8 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 | @@ -631,6 +631,12 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA, |
21 | if (IsIAMCU) | 21 | if (IsIAMCU) |
22 | CmdArgs.push_back("-lgloss"); | 22 | CmdArgs.push_back("-lgloss"); |
23 | 23 | ||
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 f21be08..6d8f47c 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 @@ | |||
1 | From 84c1650cac223a4578eb43c905fdfb30b617274e Mon Sep 17 00:00:00 2001 | 1 | From 17aa070ae827e6cd1bba48a655c8e896bda41da0 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 16 Mar 2017 09:02:13 -0700 | 3 | Date: Thu, 16 Mar 2017 09:02:13 -0700 |
4 | Subject: [PATCH] clang: Prepend trailing '/' to sysroot | 4 | Subject: [PATCH] clang: Prepend trailing '/' to sysroot |
@@ -25,10 +25,10 @@ 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 | ||
27 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 27 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
28 | index e4f593e462d6..720bc136528b 100644 | 28 | index 4d0c7e63c68e..6c28c8408605 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 | @@ -216,7 +216,7 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) |
32 | Multilibs = GCCInstallation.getMultilibs(); | 32 | Multilibs = GCCInstallation.getMultilibs(); |
33 | SelectedMultilibs.assign({GCCInstallation.getMultilib()}); | 33 | SelectedMultilibs.assign({GCCInstallation.getMultilib()}); |
34 | llvm::Triple::ArchType Arch = Triple.getArch(); | 34 | llvm::Triple::ArchType Arch = Triple.getArch(); |
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 2ee776b..620a5f0 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 @@ | |||
1 | From 4584c7048d003b239593ad66162437ffd669c220 Mon Sep 17 00:00:00 2001 | 1 | From 2fbce9b799992f1efa3f4b9e72a6de22c69f6a6b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 16 Mar 2017 19:06:26 -0700 | 3 | Date: Thu, 16 Mar 2017 19:06:26 -0700 |
4 | Subject: [PATCH] clang: Look inside the target sysroot for compiler runtime | 4 | Subject: [PATCH] clang: Look inside the target sysroot for compiler runtime |
@@ -16,10 +16,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
16 | 1 file changed, 5 insertions(+), 1 deletion(-) | 16 | 1 file changed, 5 insertions(+), 1 deletion(-) |
17 | 17 | ||
18 | diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp | 18 | diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp |
19 | index 20a555afb809..e6d285795337 100644 | 19 | index acf9d264d631..3e46c88e95cb 100644 |
20 | --- a/clang/lib/Driver/ToolChain.cpp | 20 | --- a/clang/lib/Driver/ToolChain.cpp |
21 | +++ b/clang/lib/Driver/ToolChain.cpp | 21 | +++ b/clang/lib/Driver/ToolChain.cpp |
22 | @@ -15,6 +15,7 @@ | 22 | @@ -16,6 +16,7 @@ |
23 | #include "ToolChains/InterfaceStubs.h" | 23 | #include "ToolChains/InterfaceStubs.h" |
24 | #include "clang/Basic/ObjCRuntime.h" | 24 | #include "clang/Basic/ObjCRuntime.h" |
25 | #include "clang/Basic/Sanitizers.h" | 25 | #include "clang/Basic/Sanitizers.h" |
@@ -27,7 +27,7 @@ index 20a555afb809..e6d285795337 100644 | |||
27 | #include "clang/Config/config.h" | 27 | #include "clang/Config/config.h" |
28 | #include "clang/Driver/Action.h" | 28 | #include "clang/Driver/Action.h" |
29 | #include "clang/Driver/Driver.h" | 29 | #include "clang/Driver/Driver.h" |
30 | @@ -619,7 +620,10 @@ StringRef ToolChain::getOSLibName() const { | 30 | @@ -708,7 +709,10 @@ StringRef ToolChain::getOSLibName() const { |
31 | } | 31 | } |
32 | 32 | ||
33 | std::string ToolChain::getCompilerRTPath() const { | 33 | std::string ToolChain::getCompilerRTPath() const { |
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 c897808..63678fd 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 @@ | |||
1 | From c86ed165440802158757582df52f848cad3c0e57 Mon Sep 17 00:00:00 2001 | 1 | From 5f4f290d77ebc712996acb0a67b5132216020472 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 20 Mar 2021 16:09:16 -0700 | 3 | Date: Sat, 20 Mar 2021 16:09:16 -0700 |
4 | Subject: [PATCH] clang: Define / releative gcc installation dir | 4 | Subject: [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 | ||
17 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 17 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
18 | index 3e301f2e1d95..89ffc429d059 100644 | 18 | index 9f7b9e8d42a8..4f177aa8771e 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 | @@ -2918,19 +2918,19 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | 21 | @@ -2871,19 +2871,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 b5712d6..66f4886 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 @@ | |||
1 | From 08b05e4e835b6cb73c844e300dcc4eb4919d8154 Mon Sep 17 00:00:00 2001 | 1 | From 146e389fec4739e562eb0a8fe7aeb3f6861ae6e8 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 31 Jul 2019 22:51:39 -0700 | 3 | Date: Wed, 31 Jul 2019 22:51:39 -0700 |
4 | Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static | 4 | Subject: [PATCH] clang: Add -lpthread and -ldl along with -lunwind for static |
@@ -21,10 +21,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
21 | 1 file changed, 2 insertions(+) | 21 | 1 file changed, 2 insertions(+) |
22 | 22 | ||
23 | diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp | 23 | diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
24 | index 019df16a909f..00d608c0c095 100644 | 24 | index ae635fb6a180..255e7e0b7150 100644 |
25 | --- a/clang/lib/Driver/ToolChains/CommonArgs.cpp | 25 | --- a/clang/lib/Driver/ToolChains/CommonArgs.cpp |
26 | +++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp | 26 | +++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp |
27 | @@ -2183,6 +2183,8 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D, | 27 | @@ -2254,6 +2254,8 @@ static void AddUnwindLibrary(const ToolChain &TC, const Driver &D, |
28 | CmdArgs.push_back("-lunwind"); | 28 | CmdArgs.push_back("-lunwind"); |
29 | } else if (LGT == LibGccType::StaticLibGcc) { | 29 | } else if (LGT == LibGccType::StaticLibGcc) { |
30 | CmdArgs.push_back("-l:libunwind.a"); | 30 | CmdArgs.push_back("-l:libunwind.a"); |
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 2086e0a..a029d7d 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 @@ | |||
1 | From 322385b4a6109f3f53c3679d7a276ec0084dd7b6 Mon Sep 17 00:00:00 2001 | 1 | From 9f4b973e7cab243991856be1f162a7e38517b611 Mon Sep 17 00:00:00 2001 |
2 | From: Anuj Mittal <anuj.mittal@intel.com> | 2 | From: Anuj Mittal <anuj.mittal@intel.com> |
3 | Date: Thu, 26 Dec 2019 12:56:16 -0800 | 3 | Date: Thu, 26 Dec 2019 12:56:16 -0800 |
4 | Subject: [PATCH] Pass PYTHON_EXECUTABLE when cross compiling for native build | 4 | Subject: [PATCH] Pass PYTHON_EXECUTABLE when cross compiling for native build |
@@ -11,10 +11,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
11 | 1 file changed, 1 insertion(+) | 11 | 1 file changed, 1 insertion(+) |
12 | 12 | ||
13 | diff --git a/llvm/cmake/modules/CrossCompile.cmake b/llvm/cmake/modules/CrossCompile.cmake | 13 | diff --git a/llvm/cmake/modules/CrossCompile.cmake b/llvm/cmake/modules/CrossCompile.cmake |
14 | index 39b4abaa0d93..a47afde7f85d 100644 | 14 | index 3b31d3e218a3..a07ab45878fd 100644 |
15 | --- a/llvm/cmake/modules/CrossCompile.cmake | 15 | --- a/llvm/cmake/modules/CrossCompile.cmake |
16 | +++ b/llvm/cmake/modules/CrossCompile.cmake | 16 | +++ b/llvm/cmake/modules/CrossCompile.cmake |
17 | @@ -92,6 +92,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype) | 17 | @@ -100,6 +100,7 @@ function(llvm_create_cross_target project_name target_name toolchain buildtype) |
18 | -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN}" | 18 | -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN="${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN}" |
19 | -DLLVM_INCLUDE_BENCHMARKS=OFF | 19 | -DLLVM_INCLUDE_BENCHMARKS=OFF |
20 | -DLLVM_INCLUDE_TESTS=OFF | 20 | -DLLVM_INCLUDE_TESTS=OFF |
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 6db24a9..14145e7 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 @@ | |||
1 | From 2f41e0721f964677e8876b2c2f540836f426c83f Mon Sep 17 00:00:00 2001 | 1 | From 3cea4e8ef2f789e6988cb9caf6b28dbc240d93bd Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 18 Nov 2019 17:00:29 -0800 | 3 | Date: Mon, 18 Nov 2019 17:00:29 -0800 |
4 | Subject: [PATCH] Check for atomic<double> intrinsics | 4 | Subject: [PATCH] Check for atomic<double> intrinsics |
diff --git a/recipes-devtools/clang/clang/0014-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 5e9eb01..94c056a 100644 --- a/recipes-devtools/clang/clang/0014-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 @@ | |||
1 | From 6c4f71af6a8c5c0e9261cd20522ecf8d1cdb9e48 Mon Sep 17 00:00:00 2001 | 1 | From 93141cee493022d9f39dbd1f5f0bb0a1110ac829 Mon Sep 17 00:00:00 2001 |
2 | From: Ovidiu Panait <ovidiu.panait@windriver.com> | 2 | From: Ovidiu Panait <ovidiu.panait@windriver.com> |
3 | Date: Fri, 31 Jan 2020 10:56:11 +0200 | 3 | Date: Fri, 31 Jan 2020 10:56:11 +0200 |
4 | Subject: [PATCH] cmake: Fix configure for packages using find_package() | 4 | Subject: [PATCH] cmake: Fix configure for packages using find_package() |
@@ -26,15 +26,15 @@ Upstream-Status: Inappropriate [oe-specific] | |||
26 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> | 26 | Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> |
27 | --- | 27 | --- |
28 | clang/cmake/modules/AddClang.cmake | 2 -- | 28 | clang/cmake/modules/AddClang.cmake | 2 -- |
29 | llvm/cmake/modules/AddLLVM.cmake | 7 +------ | 29 | llvm/cmake/modules/AddLLVM.cmake | 9 ++------- |
30 | llvm/cmake/modules/TableGen.cmake | 6 ------ | 30 | llvm/cmake/modules/TableGen.cmake | 6 ------ |
31 | 3 files changed, 1 insertion(+), 14 deletions(-) | 31 | 3 files changed, 2 insertions(+), 15 deletions(-) |
32 | 32 | ||
33 | diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake | 33 | diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake |
34 | index 9d09be193684..d6123b834337 100644 | 34 | index cdc8bd5cd503..5faa9117a30f 100644 |
35 | --- a/clang/cmake/modules/AddClang.cmake | 35 | --- a/clang/cmake/modules/AddClang.cmake |
36 | +++ b/clang/cmake/modules/AddClang.cmake | 36 | +++ b/clang/cmake/modules/AddClang.cmake |
37 | @@ -169,7 +169,6 @@ macro(add_clang_tool name) | 37 | @@ -182,7 +182,6 @@ macro(add_clang_tool name) |
38 | if (CLANG_BUILD_TOOLS) | 38 | if (CLANG_BUILD_TOOLS) |
39 | get_target_export_arg(${name} Clang export_to_clangtargets) | 39 | get_target_export_arg(${name} Clang export_to_clangtargets) |
40 | install(TARGETS ${name} | 40 | install(TARGETS ${name} |
@@ -42,38 +42,40 @@ index 9d09be193684..d6123b834337 100644 | |||
42 | RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" | 42 | RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" |
43 | COMPONENT ${name}) | 43 | COMPONENT ${name}) |
44 | 44 | ||
45 | @@ -178,7 +177,6 @@ macro(add_clang_tool name) | 45 | @@ -191,7 +190,6 @@ macro(add_clang_tool name) |
46 | DEPENDS ${name} | 46 | DEPENDS ${name} |
47 | COMPONENT ${name}) | 47 | COMPONENT ${name}) |
48 | endif() | 48 | endif() |
49 | - set_property(GLOBAL APPEND PROPERTY CLANG_EXPORTS ${name}) | 49 | - set_property(GLOBAL APPEND PROPERTY CLANG_EXPORTS ${name}) |
50 | endif() | 50 | endif() |
51 | endif() | 51 | endif() |
52 | endmacro() | 52 | set_target_properties(${name} PROPERTIES XCODE_GENERATE_SCHEME ON) |
53 | diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake | 53 | diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake |
54 | index 03f4e1f190fd..6335ab262d19 100644 | 54 | index d3e9377c8d2f..fe22d6f2b35a 100644 |
55 | --- a/llvm/cmake/modules/AddLLVM.cmake | 55 | --- a/llvm/cmake/modules/AddLLVM.cmake |
56 | +++ b/llvm/cmake/modules/AddLLVM.cmake | 56 | +++ b/llvm/cmake/modules/AddLLVM.cmake |
57 | @@ -1435,7 +1435,6 @@ macro(llvm_add_tool project name) | 57 | @@ -1492,7 +1492,6 @@ macro(llvm_add_tool project name) |
58 | if( LLVM_BUILD_TOOLS ) | 58 | if( LLVM_BUILD_TOOLS ) |
59 | get_target_export_arg(${name} LLVM export_to_llvmexports) | 59 | get_target_export_arg(${name} ${project} export_to_llvmexports) |
60 | install(TARGETS ${name} | 60 | install(TARGETS ${name} |
61 | - ${export_to_llvmexports} | 61 | - ${export_to_llvmexports} |
62 | RUNTIME DESTINATION ${${project}_TOOLS_INSTALL_DIR} | 62 | RUNTIME DESTINATION ${${project}_TOOLS_INSTALL_DIR} |
63 | COMPONENT ${name}) | 63 | COMPONENT ${name}) |
64 | 64 | ||
65 | @@ -1446,9 +1445,7 @@ macro(llvm_add_tool project name) | 65 | @@ -1503,10 +1502,8 @@ macro(llvm_add_tool project name) |
66 | endif() | 66 | endif() |
67 | endif() | 67 | endif() |
68 | endif() | 68 | endif() |
69 | - if( LLVM_BUILD_TOOLS ) | 69 | - if( LLVM_BUILD_TOOLS ) |
70 | - set_property(GLOBAL APPEND PROPERTY LLVM_EXPORTS ${name}) | 70 | - string(TOUPPER "${project}" project_upper) |
71 | - set_property(GLOBAL APPEND PROPERTY ${project_upper}_EXPORTS ${name}) | ||
71 | - endif() | 72 | - endif() |
73 | + string(TOUPPER "${project}" project_upper) | ||
72 | + set_target_properties(${name} PROPERTIES FOLDER "Tools") | 74 | + set_target_properties(${name} PROPERTIES FOLDER "Tools") |
73 | endif() | 75 | endif() |
74 | get_subproject_title(subproject_title) | 76 | get_subproject_title(subproject_title) |
75 | set_target_properties(${name} PROPERTIES FOLDER "${subproject_title}/Tools") | 77 | set_target_properties(${name} PROPERTIES FOLDER "${subproject_title}/Tools") |
76 | @@ -1497,7 +1494,6 @@ macro(add_llvm_utility name) | 78 | @@ -1556,7 +1553,6 @@ macro(add_llvm_utility name) |
77 | if (LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS) | 79 | if (LLVM_INSTALL_UTILS AND LLVM_BUILD_UTILS) |
78 | get_target_export_arg(${name} LLVM export_to_llvmexports) | 80 | get_target_export_arg(${name} LLVM export_to_llvmexports) |
79 | install(TARGETS ${name} | 81 | install(TARGETS ${name} |
@@ -81,7 +83,7 @@ index 03f4e1f190fd..6335ab262d19 100644 | |||
81 | RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR} | 83 | RUNTIME DESTINATION ${LLVM_UTILS_INSTALL_DIR} |
82 | COMPONENT ${name}) | 84 | COMPONENT ${name}) |
83 | 85 | ||
84 | @@ -1506,7 +1502,6 @@ macro(add_llvm_utility name) | 86 | @@ -1565,7 +1561,6 @@ macro(add_llvm_utility name) |
85 | DEPENDS ${name} | 87 | DEPENDS ${name} |
86 | COMPONENT ${name}) | 88 | COMPONENT ${name}) |
87 | endif() | 89 | endif() |
diff --git a/recipes-devtools/clang/clang/0015-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 74ddbef..8605db0 100644 --- a/recipes-devtools/clang/clang/0015-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 @@ | |||
1 | From 11fce59f48e7d15d9b16509146484d60a04f25e9 Mon Sep 17 00:00:00 2001 | 1 | From 7c6cb0a5d35f1a757165a44aa5d2d1d16af32205 Mon Sep 17 00:00:00 2001 |
2 | From: Jim Broadus <jbroadus@xevo.com> | 2 | From: Jim Broadus <jbroadus@xevo.com> |
3 | Date: Thu, 26 Mar 2020 16:05:53 -0700 | 3 | Date: Thu, 26 Mar 2020 16:05:53 -0700 |
4 | Subject: [PATCH] clang: Fix resource dir location for cross toolchains | 4 | Subject: [PATCH] clang: Fix resource dir location for cross toolchains |
@@ -16,27 +16,35 @@ Upstream-Status: Pending | |||
16 | Signed-off-by: Jim Broadus <jbroadus@xevo.com> | 16 | Signed-off-by: Jim Broadus <jbroadus@xevo.com> |
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
18 | --- | 18 | --- |
19 | clang/lib/Driver/Driver.cpp | 8 +++++++- | 19 | clang/lib/Driver/Driver.cpp | 9 ++++++++- |
20 | 1 file changed, 7 insertions(+), 1 deletion(-) | 20 | 1 file changed, 8 insertions(+), 1 deletion(-) |
21 | 21 | ||
22 | diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp | 22 | diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp |
23 | index ecae475f75da..ca6c8c98961f 100644 | 23 | index 87855fdb7997..036c9d09df26 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 | @@ -176,6 +176,7 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath) { |
27 | |||
28 | // Dir is bin/ or lib/, depending on where BinaryPath is. | ||
29 | StringRef Dir = llvm::sys::path::parent_path(BinaryPath); | ||
30 | + StringRef LastDirName = llvm::sys::path::filename(Dir); | ||
31 | SmallString<128> P(Dir); | ||
32 | |||
33 | StringRef ConfiguredResourceDir(CLANG_RESOURCE_DIR); | ||
34 | @@ -187,9 +188,15 @@ std::string Driver::GetResourcesPath(StringRef BinaryPath) { | ||
27 | // With a static-library build of libclang, LibClangPath will contain the | 35 | // With a static-library build of libclang, LibClangPath will contain the |
28 | // path of the embedding binary, which for LLVM binaries will be in bin/. | 36 | // path of the embedding binary, which for LLVM binaries will be in bin/. |
29 | // ../lib gets us to lib/ in both cases. | 37 | // ../lib gets us to lib/ in both cases. |
30 | - P = llvm::sys::path::parent_path(Dir); | 38 | - P = llvm::sys::path::parent_path(Dir); |
31 | + Dir = std::string(llvm::sys::path::parent_path(Dir)); | ||
32 | // This search path is also created in the COFF driver of lld, so any | 39 | // This search path is also created in the COFF driver of lld, so any |
33 | // changes here also needs to happen in lld/COFF/Driver.cpp | 40 | // changes here also needs to happen in lld/COFF/Driver.cpp |
34 | + | 41 | + |
35 | + // OE cross toolchains are installed, by default, in a subdir of bin. | 42 | + // OE cross toolchains are installed, by default, in a subdir of bin. |
36 | + if (llvm::sys::path::filename(Dir) == "bin") { | 43 | + if (LastDirName == "bin") { |
37 | + Dir = std::string(llvm::sys::path::parent_path(Dir)); | 44 | + P = llvm::sys::path::parent_path(Dir); |
45 | + } else { | ||
46 | + P = llvm::sys::path::parent_path(llvm::sys::path::parent_path(Dir)); | ||
38 | + } | 47 | + } |
39 | + P = Dir; | ||
40 | llvm::sys::path::append(P, CLANG_INSTALL_LIBDIR_BASENAME, "clang", | 48 | llvm::sys::path::append(P, CLANG_INSTALL_LIBDIR_BASENAME, "clang", |
41 | CLANG_VERSION_MAJOR_STRING); | 49 | CLANG_VERSION_MAJOR_STRING); |
42 | } | 50 | } |
diff --git a/recipes-devtools/clang/clang/0016-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 7b130e9..084f39d 100644 --- a/recipes-devtools/clang/clang/0016-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 @@ | |||
1 | From ed293c1fb5888f6ffe091f7276a7897e1a239c01 Mon Sep 17 00:00:00 2001 | 1 | From a80ccd52d2230ec4df68506910d6c836f02af591 Mon Sep 17 00:00:00 2001 |
2 | From: Oleksandr Ocheretnyi <oocheret@cisco.com> | 2 | From: Oleksandr Ocheretnyi <oocheret@cisco.com> |
3 | Date: Wed, 15 Apr 2020 00:08:39 +0300 | 3 | Date: Wed, 15 Apr 2020 00:08:39 +0300 |
4 | Subject: [PATCH] clang: driver: Add dyld-prefix when checking sysroot for ldso | 4 | Subject: [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 | ||
21 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 21 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
22 | index 720bc136528b..b3a399187ec3 100644 | 22 | index 6c28c8408605..32414810b6d7 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 | @@ -512,8 +512,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 25 | @@ -524,8 +524,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 720bc136528b..b3a399187ec3 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 | @@ -570,8 +570,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 36 | @@ -582,8 +582,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 720bc136528b..b3a399187ec3 100644 | |||
44 | LibDir = "lib"; | 44 | LibDir = "lib"; |
45 | } | 45 | } |
46 | break; | 46 | break; |
47 | @@ -579,8 +579,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 47 | @@ -591,8 +591,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 720bc136528b..b3a399187ec3 100644 | |||
55 | LibDir = "lib"; | 55 | LibDir = "lib"; |
56 | } | 56 | } |
57 | break; | 57 | break; |
58 | @@ -600,8 +600,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 58 | @@ -612,8 +612,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 720bc136528b..b3a399187ec3 100644 | |||
66 | LibDir = "lib"; | 66 | LibDir = "lib"; |
67 | } | 67 | } |
68 | break; | 68 | break; |
69 | @@ -618,8 +618,8 @@ std::string Linux::getDynamicLinker(const ArgList &Args) const { | 69 | @@ -630,8 +630,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/0017-clang-Use-python3-in-python-scripts.patch b/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch index 2631ba7..0d5d240 100644 --- a/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch +++ b/recipes-devtools/clang/clang/0017-clang-Use-python3-in-python-scripts.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 42acc8d6b252851b3f3cdae08bd9e1ed5a9c8935 Mon Sep 17 00:00:00 2001 | 1 | From 34f43ca6a4757a6a80f92c56be340ca4de3b2a31 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 14 Oct 2020 22:19:57 -0700 | 3 | Date: Wed, 14 Oct 2020 22:19:57 -0700 |
4 | Subject: [PATCH] clang: Use python3 in python scripts | 4 | Subject: [PATCH] clang: Use python3 in python scripts |
diff --git a/recipes-devtools/clang/clang/0018-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 5970565..a928d6e 100644 --- a/recipes-devtools/clang/clang/0018-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 @@ | |||
1 | From 1acea10c68785c42d625618d5cf120e4f19138f2 Mon Sep 17 00:00:00 2001 | 1 | From b0a3357f0e3a38a2aa5eebfc73fa9cc531e9a9e1 Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Mon, 25 Jan 2021 16:14:35 +0800 | 3 | Date: Mon, 25 Jan 2021 16:14:35 +0800 |
4 | Subject: [PATCH] For x86_64, set Yocto based GCC install search path | 4 | Subject: [PATCH] For x86_64, set Yocto based GCC install search path |
@@ -57,10 +57,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
57 | 1 file changed, 1 insertion(+) | 57 | 1 file changed, 1 insertion(+) |
58 | 58 | ||
59 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 59 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
60 | index 89ffc429d059..e05dd30c3f89 100644 | 60 | index 4f177aa8771e..6873892372ea 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 | @@ -2451,6 +2451,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( |
64 | "x86_64-pc-linux-gnu", "x86_64-redhat-linux6E", | 64 | "x86_64-pc-linux-gnu", "x86_64-redhat-linux6E", |
65 | "x86_64-redhat-linux", "x86_64-suse-linux", | 65 | "x86_64-redhat-linux", "x86_64-suse-linux", |
66 | "x86_64-manbo-linux-gnu", "x86_64-slackware-linux", | 66 | "x86_64-manbo-linux-gnu", "x86_64-slackware-linux", |
diff --git a/recipes-devtools/clang/clang/0019-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 06b8ffd..e7f16f6 100644 --- a/recipes-devtools/clang/clang/0019-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 @@ | |||
1 | From a1ae883e90cb9554e10d24277a955fb0660e85a1 Mon Sep 17 00:00:00 2001 | 1 | From a4723752be1e9398d5697741ca0be721d90f814e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 11 Feb 2021 16:42:49 -0800 | 3 | Date: Thu, 11 Feb 2021 16:42:49 -0800 |
4 | Subject: [PATCH] llvm: Insert anchor for adding OE distro vendor names | 4 | Subject: [PATCH] llvm: Insert anchor for adding OE distro vendor names |
@@ -18,15 +18,15 @@ 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 | ||
20 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp | 20 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp |
21 | index 21d6c74b5956..32adf92c47bf 100644 | 21 | index e9e6f130f757..97f426dd863b 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 | @@ -639,7 +639,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { | 24 | @@ -663,7 +663,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) { |
25 | .Case("amd", Triple::AMD) | 25 | .Case("mesa", Triple::Mesa) |
26 | .Case("mesa", Triple::Mesa) | 26 | .Case("suse", Triple::SUSE) |
27 | .Case("suse", Triple::SUSE) | 27 | .Case("oe", Triple::OpenEmbedded) |
28 | - .Case("oe", Triple::OpenEmbedded) | 28 | - .Case("intel", Triple::Intel) |
29 | + .Case("oe", Triple::OpenEmbedded)//CLANG_EXTRA_OE_VENDORS_CASES | 29 | + .Case("intel", Triple::Intel) //CLANG_EXTRA_OE_VENDORS_CASES |
30 | .Default(Triple::UnknownVendor); | 30 | .Default(Triple::UnknownVendor); |
31 | } | 31 | } |
32 | 32 | ||
diff --git a/recipes-devtools/clang/clang/0020-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 5b17a7a..bb7b01b 100644 --- a/recipes-devtools/clang/clang/0020-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 @@ | |||
1 | From 11ef637da77e0fd115211f42665c2ed533f921a5 Mon Sep 17 00:00:00 2001 | 1 | From 71f429239846d67c331aee98d84d37f2c7c07c6c Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 19 May 2021 17:32:13 -0700 | 3 | Date: Wed, 19 May 2021 17:32:13 -0700 |
4 | Subject: [PATCH] compiler-rt: Do not use backtrace APIs on non-glibc linux | 4 | Subject: [PATCH] compiler-rt: Do not use backtrace APIs on non-glibc linux |
diff --git a/recipes-devtools/clang/clang/0021-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 b33a9f4..6c7daff 100644 --- a/recipes-devtools/clang/clang/0021-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 @@ | |||
1 | From 9a336eeaa8f8d62057802a98e249df695befa6b6 Mon Sep 17 00:00:00 2001 | 1 | From 98d888c1f966d7758690b2a3b3a7fa7b47c58ebf Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 19 May 2021 17:56:03 -0700 | 3 | Date: Wed, 19 May 2021 17:56:03 -0700 |
4 | Subject: [PATCH] clang: Fix x86 triple for non-debian multiarch linux distros | 4 | Subject: [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 | ||
15 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 15 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
16 | index b3a399187ec3..f39c771798a8 100644 | 16 | index 32414810b6d7..a9ee2b671f2e 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 | @@ -715,6 +715,9 @@ void Linux::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, | 19 | @@ -727,6 +727,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/0022-libunwind-Added-unw_backtrace-method.patch b/recipes-devtools/clang/clang/0022-libunwind-Added-unw_backtrace-method.patch index 77cbc1c..be788b7 100644 --- a/recipes-devtools/clang/clang/0022-libunwind-Added-unw_backtrace-method.patch +++ b/recipes-devtools/clang/clang/0022-libunwind-Added-unw_backtrace-method.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 01500348e14ae9fa8272f00c2a99ac6e153f5f8e Mon Sep 17 00:00:00 2001 | 1 | From bb3cadafda39177d2a36598e1430bc2ff97a3d37 Mon Sep 17 00:00:00 2001 |
2 | From: Maksim Kita <maksim-kita@yandex-team.ru> | 2 | From: Maksim Kita <maksim-kita@yandex-team.ru> |
3 | Date: Sun, 23 May 2021 10:27:29 +0000 | 3 | Date: Sun, 23 May 2021 10:27:29 +0000 |
4 | Subject: [PATCH] libunwind: Added unw_backtrace method | 4 | Subject: [PATCH] libunwind: Added unw_backtrace method |
diff --git a/recipes-devtools/clang/clang/0023-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 bac9d10..25dec75 100644 --- a/recipes-devtools/clang/clang/0023-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 @@ | |||
1 | From 081655795d08178e20bcfbaef5dab4a97230f095 Mon Sep 17 00:00:00 2001 | 1 | From 89348e6c2cf3f65eb244c5b01145309355573ade Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 11 Aug 2021 18:37:11 -0700 | 3 | Date: Wed, 11 Aug 2021 18:37:11 -0700 |
4 | Subject: [PATCH] clang: Do not use install relative libc++ headers | 4 | Subject: [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 | ||
18 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 18 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
19 | index e05dd30c3f89..d9efd09d9da6 100644 | 19 | index 6873892372ea..b5485970a0c5 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 | @@ -3316,8 +3316,11 @@ Generic_GCC::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs, | 22 | @@ -3275,8 +3275,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/0024-Fix-lib-paths-for-OpenEmbedded-Host.patch b/recipes-devtools/clang/clang/0024-Fix-lib-paths-for-OpenEmbedded-Host.patch index 617113d..d450576 100644 --- a/recipes-devtools/clang/clang/0024-Fix-lib-paths-for-OpenEmbedded-Host.patch +++ b/recipes-devtools/clang/clang/0024-Fix-lib-paths-for-OpenEmbedded-Host.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 68007800df2e080d799670378c7ec9d667c7e782 Mon Sep 17 00:00:00 2001 | 1 | From a3f6769e9da81aa359b2f013b88639dc0c8ca5ea Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Tue, 7 Dec 2021 04:08:22 +0000 | 3 | Date: Tue, 7 Dec 2021 04:08:22 +0000 |
4 | Subject: [PATCH] Fix lib paths for OpenEmbedded Host | 4 | Subject: [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 | ||
50 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 50 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
51 | index d9efd09d9da6..4ec4976a6a0c 100644 | 51 | index b5485970a0c5..868d32f501e8 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 d9efd09d9da6..4ec4976a6a0c 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 | @@ -2908,6 +2909,7 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | 62 | @@ -2861,6 +2862,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 d9efd09d9da6..4ec4976a6a0c 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 | @@ -2925,7 +2927,8 @@ void Generic_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple( | 70 | @@ -2878,7 +2880,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/0025-Correct-library-search-path-for-OpenEmbedded-Host.patch b/recipes-devtools/clang/clang/0025-Correct-library-search-path-for-OpenEmbedded-Host.patch index 11dc196..94f9c2c 100644 --- a/recipes-devtools/clang/clang/0025-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 @@ | |||
1 | From 65e12e7671888531d657e0484aa0397e7e98b134 Mon Sep 17 00:00:00 2001 | 1 | From 3bf683abe028c13dfdb4156eefb210741e43986a Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Tue, 7 Dec 2021 04:55:48 +0000 | 3 | Date: Tue, 7 Dec 2021 04:55:48 +0000 |
4 | Subject: [PATCH] Correct library search path for OpenEmbedded Host | 4 | Subject: [PATCH] Correct library search path for OpenEmbedded Host |
@@ -39,7 +39,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
39 | 3 files changed, 4 insertions(+) | 39 | 3 files changed, 4 insertions(+) |
40 | 40 | ||
41 | diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h | 41 | diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h |
42 | index 1404e1686848..90940e4a0bac 100644 | 42 | index b4d485dac8a2..ac0bf25b7c63 100644 |
43 | --- a/clang/include/clang/Driver/Distro.h | 43 | --- a/clang/include/clang/Driver/Distro.h |
44 | +++ b/clang/include/clang/Driver/Distro.h | 44 | +++ b/clang/include/clang/Driver/Distro.h |
45 | @@ -45,6 +45,7 @@ public: | 45 | @@ -45,6 +45,7 @@ public: |
@@ -50,7 +50,7 @@ index 1404e1686848..90940e4a0bac 100644 | |||
50 | OpenSUSE, | 50 | OpenSUSE, |
51 | UbuntuHardy, | 51 | UbuntuHardy, |
52 | UbuntuIntrepid, | 52 | UbuntuIntrepid, |
53 | @@ -138,6 +139,7 @@ public: | 53 | @@ -139,6 +140,7 @@ public: |
54 | 54 | ||
55 | bool IsGentoo() const { return DistroVal == Gentoo; } | 55 | bool IsGentoo() const { return DistroVal == Gentoo; } |
56 | 56 | ||
@@ -59,10 +59,10 @@ index 1404e1686848..90940e4a0bac 100644 | |||
59 | }; | 59 | }; |
60 | 60 | ||
61 | diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp | 61 | diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp |
62 | index 6f49e641104c..63b9ff30f0b6 100644 | 62 | index 3cc79535de8d..595656179bdc 100644 |
63 | --- a/clang/lib/Driver/Distro.cpp | 63 | --- a/clang/lib/Driver/Distro.cpp |
64 | +++ b/clang/lib/Driver/Distro.cpp | 64 | +++ b/clang/lib/Driver/Distro.cpp |
65 | @@ -44,6 +44,7 @@ static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) { | 65 | @@ -43,6 +43,7 @@ static Distro::DistroType DetectOsRelease(llvm::vfs::FileSystem &VFS) { |
66 | .Case("sles", Distro::OpenSUSE) | 66 | .Case("sles", Distro::OpenSUSE) |
67 | .Case("opensuse", Distro::OpenSUSE) | 67 | .Case("opensuse", Distro::OpenSUSE) |
68 | .Case("exherbo", Distro::Exherbo) | 68 | .Case("exherbo", Distro::Exherbo) |
@@ -71,7 +71,7 @@ index 6f49e641104c..63b9ff30f0b6 100644 | |||
71 | return Version; | 71 | return Version; |
72 | } | 72 | } |
73 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 73 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
74 | index f39c771798a8..9af52769b09a 100644 | 74 | index a9ee2b671f2e..ec1705af3cbd 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/0026-lldb-Link-with-libatomic-on-x86.patch b/recipes-devtools/clang/clang/0026-lldb-Link-with-libatomic-on-x86.patch index 275a7c6..6b5998c 100644 --- a/recipes-devtools/clang/clang/0026-lldb-Link-with-libatomic-on-x86.patch +++ b/recipes-devtools/clang/clang/0026-lldb-Link-with-libatomic-on-x86.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d395cc2696d62d7d3448bc9a90f7697cf60e6273 Mon Sep 17 00:00:00 2001 | 1 | From 8b73ff82e4eec89090bd34d3fb0732321b418dcc Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 8 Feb 2022 01:31:26 -0800 | 3 | Date: Tue, 8 Feb 2022 01:31:26 -0800 |
4 | Subject: [PATCH] lldb: Link with libatomic on x86 | 4 | Subject: [PATCH] lldb: Link with libatomic on x86 |
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
17 | 1 file changed, 4 insertions(+) | 17 | 1 file changed, 4 insertions(+) |
18 | 18 | ||
19 | diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt | 19 | diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt |
20 | index e9954d66cd1a..f36f1c9e9d28 100644 | 20 | index 6954a2508ffe..b8bf8c07fefb 100644 |
21 | --- a/lldb/source/Utility/CMakeLists.txt | 21 | --- a/lldb/source/Utility/CMakeLists.txt |
22 | +++ b/lldb/source/Utility/CMakeLists.txt | 22 | +++ b/lldb/source/Utility/CMakeLists.txt |
23 | @@ -19,6 +19,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Windows") | 23 | @@ -19,6 +19,10 @@ if (CMAKE_SYSTEM_NAME MATCHES "Windows") |
diff --git a/recipes-devtools/clang/clang/0027-compiler-rt-Enable-__int128-for-ppc32.patch b/recipes-devtools/clang/clang/0027-compiler-rt-Enable-__int128-for-ppc32.patch index bbccb8a..1dafc0a 100644 --- a/recipes-devtools/clang/clang/0027-compiler-rt-Enable-__int128-for-ppc32.patch +++ b/recipes-devtools/clang/clang/0027-compiler-rt-Enable-__int128-for-ppc32.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a92ea48f1959a20ab58b88091127f80a90d5870a Mon Sep 17 00:00:00 2001 | 1 | From 945c633b604d72ec307307a498cc6b206f810f4b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 9 Mar 2022 16:28:16 -0800 | 3 | Date: Wed, 9 Mar 2022 16:28:16 -0800 |
4 | Subject: [PATCH] compiler-rt: Enable __int128 for ppc32 | 4 | Subject: [PATCH] compiler-rt: Enable __int128 for ppc32 |
@@ -11,10 +11,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
11 | 2 files changed, 8 insertions(+), 9 deletions(-) | 11 | 2 files changed, 8 insertions(+), 9 deletions(-) |
12 | 12 | ||
13 | diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt | 13 | diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt |
14 | index e0b2d08c2077..1b245fd5deeb 100644 | 14 | index 19316c52d12c..cb276311b290 100644 |
15 | --- a/compiler-rt/lib/builtins/CMakeLists.txt | 15 | --- a/compiler-rt/lib/builtins/CMakeLists.txt |
16 | +++ b/compiler-rt/lib/builtins/CMakeLists.txt | 16 | +++ b/compiler-rt/lib/builtins/CMakeLists.txt |
17 | @@ -710,11 +710,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES} | 17 | @@ -720,11 +720,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES} |
18 | 18 | ||
19 | set(nvptx64_SOURCES ${GENERIC_SOURCES}) | 19 | set(nvptx64_SOURCES ${GENERIC_SOURCES}) |
20 | 20 | ||
@@ -27,7 +27,7 @@ index e0b2d08c2077..1b245fd5deeb 100644 | |||
27 | ppc/divtc3.c | 27 | ppc/divtc3.c |
28 | ppc/fixtfdi.c | 28 | ppc/fixtfdi.c |
29 | ppc/fixunstfdi.c | 29 | ppc/fixunstfdi.c |
30 | @@ -729,14 +727,15 @@ set(powerpc64_SOURCES | 30 | @@ -739,14 +737,15 @@ set(powerpc64_SOURCES |
31 | ) | 31 | ) |
32 | # These routines require __int128, which isn't supported on AIX. | 32 | # These routines require __int128, which isn't supported on AIX. |
33 | if (NOT OS_NAME MATCHES "AIX") | 33 | if (NOT OS_NAME MATCHES "AIX") |
@@ -45,8 +45,8 @@ index e0b2d08c2077..1b245fd5deeb 100644 | |||
45 | +set(powerpc64_SOURCES ${powerpc_SOURCES}) | 45 | +set(powerpc64_SOURCES ${powerpc_SOURCES}) |
46 | 46 | ||
47 | set(riscv_SOURCES | 47 | set(riscv_SOURCES |
48 | riscv/fp_mode.c | 48 | cpu_model/riscv.c |
49 | @@ -888,9 +887,9 @@ else () | 49 | @@ -904,9 +903,9 @@ else () |
50 | list(APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET) | 50 | list(APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET) |
51 | endif() | 51 | endif() |
52 | 52 | ||
diff --git a/recipes-devtools/clang/clang/0028-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 8c56c1d..1afdf92 100644 --- a/recipes-devtools/clang/clang/0028-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 @@ | |||
1 | From e06415c9d95a4830b61a21d2a9b159145c0a46f3 Mon Sep 17 00:00:00 2001 | 1 | From 4ff4be1d645e3390431435f82d7bb567bd8d890f Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 12 Aug 2022 11:50:57 -0700 | 3 | Date: Fri, 12 Aug 2022 11:50:57 -0700 |
4 | Subject: [PATCH] llvm: Do not use cmake infra to detect libzstd | 4 | Subject: [PATCH] llvm: Do not use cmake infra to detect libzstd |
@@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
21 | 1 file changed, 4 insertions(+), 4 deletions(-) | 21 | 1 file changed, 4 insertions(+), 4 deletions(-) |
22 | 22 | ||
23 | diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt | 23 | diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt |
24 | index f653379e3033..6456caff9dff 100644 | 24 | index a6d8a2581886..5b461547bdde 100644 |
25 | --- a/llvm/lib/Support/CMakeLists.txt | 25 | --- a/llvm/lib/Support/CMakeLists.txt |
26 | +++ b/llvm/lib/Support/CMakeLists.txt | 26 | +++ b/llvm/lib/Support/CMakeLists.txt |
27 | @@ -22,7 +22,7 @@ if (HAS_WERROR_GLOBAL_CTORS) | 27 | @@ -22,7 +22,7 @@ if (HAS_WERROR_GLOBAL_CTORS) |
@@ -42,7 +42,7 @@ index f653379e3033..6456caff9dff 100644 | |||
42 | endif() | 42 | endif() |
43 | 43 | ||
44 | if( WIN32 ) | 44 | if( WIN32 ) |
45 | @@ -310,7 +310,7 @@ if(LLVM_ENABLE_ZLIB) | 45 | @@ -325,7 +325,7 @@ if(LLVM_ENABLE_ZLIB) |
46 | get_property(zlib_library TARGET ZLIB::ZLIB PROPERTY LOCATION) | 46 | get_property(zlib_library TARGET ZLIB::ZLIB PROPERTY LOCATION) |
47 | endif() | 47 | endif() |
48 | get_library_name(${zlib_library} zlib_library) | 48 | get_library_name(${zlib_library} zlib_library) |
@@ -51,7 +51,7 @@ index f653379e3033..6456caff9dff 100644 | |||
51 | endif() | 51 | endif() |
52 | 52 | ||
53 | if(LLVM_ENABLE_ZSTD) | 53 | if(LLVM_ENABLE_ZSTD) |
54 | @@ -324,7 +324,7 @@ if(LLVM_ENABLE_ZSTD) | 54 | @@ -339,7 +339,7 @@ if(LLVM_ENABLE_ZSTD) |
55 | endif() | 55 | endif() |
56 | if (zstd_target STREQUAL zstd::libzstd_shared) | 56 | if (zstd_target STREQUAL zstd::libzstd_shared) |
57 | get_library_name(${zstd_library} zstd_library) | 57 | get_library_name(${zstd_library} zstd_library) |
diff --git a/recipes-devtools/clang/clang/0029-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 674cbe5..52260bc 100644 --- a/recipes-devtools/clang/clang/0029-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 @@ | |||
1 | From a1729e842b825919a8efe0389aa2b0f0c16a2924 Mon Sep 17 00:00:00 2001 | 1 | From f097441a66563be067016760706e0266494db800 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 3 Jan 2023 18:44:34 -0800 | 3 | Date: Tue, 3 Jan 2023 18:44:34 -0800 |
4 | Subject: [PATCH] compiler-rt: Fix stat struct's size for O32 ABI | 4 | Subject: [PATCH] compiler-rt: Fix stat struct's size for O32 ABI |
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 13 insertions(+) | 14 | 1 file changed, 13 insertions(+) |
15 | 15 | ||
16 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 16 | diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
17 | index 34bfef1f7ef4..0ba5451c1ccf 100644 | 17 | index 1a7d9e64048e..854a87e17236 100644 |
18 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 18 | --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
19 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h | 19 | +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h |
20 | @@ -98,11 +98,24 @@ const unsigned struct_kernel_stat64_sz = 104; | 20 | @@ -98,6 +98,18 @@ const unsigned struct_kernel_stat64_sz = 104; |
21 | const unsigned struct_kernel_stat_sz = 144; | 21 | const unsigned struct_kernel_stat_sz = 144; |
22 | const unsigned struct_kernel_stat64_sz = 104; | 22 | const unsigned struct_kernel_stat64_sz = 104; |
23 | #elif defined(__mips__) | 23 | #elif defined(__mips__) |
@@ -33,10 +33,12 @@ index 34bfef1f7ef4..0ba5451c1ccf 100644 | |||
33 | +const unsigned struct_kernel_stat64_sz = 160; | 33 | +const unsigned struct_kernel_stat64_sz = 160; |
34 | +#endif | 34 | +#endif |
35 | +#else // __mips_o32 | 35 | +#else // __mips_o32 |
36 | const unsigned struct_kernel_stat_sz = | 36 | const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID |
37 | SANITIZER_ANDROID | 37 | ? FIRST_32_SECOND_64(104, 128) |
38 | ? FIRST_32_SECOND_64(104, 128) | 38 | # if defined(_ABIN32) && _MIPS_SIM == _ABIN32 |
39 | : FIRST_32_SECOND_64((_MIPS_SIM == _ABIN32) ? 176 : 160, 216); | 39 | @@ -106,6 +118,7 @@ const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID |
40 | : FIRST_32_SECOND_64(160, 216); | ||
41 | # endif | ||
40 | const unsigned struct_kernel_stat64_sz = 104; | 42 | const unsigned struct_kernel_stat64_sz = 104; |
41 | +#endif | 43 | +#endif |
42 | #elif defined(__s390__) && !defined(__s390x__) | 44 | #elif defined(__s390__) && !defined(__s390x__) |
diff --git a/recipes-devtools/clang/clang/0030-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 1c5e1ad..8e36538 100644 --- a/recipes-devtools/clang/clang/0030-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 @@ | |||
1 | From dbf32edb06caeed5324edfb13bc42bf8fc1406a5 Mon Sep 17 00:00:00 2001 | 1 | From ae2ad23eefd3b8645f7b77431d621f918faea48a Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 21 Feb 2023 12:46:10 -0800 | 3 | Date: Tue, 21 Feb 2023 12:46:10 -0800 |
4 | Subject: [PATCH] compiler-rt: Undef _TIME_BITS along with _FILE_OFFSET_BITS in | 4 | Subject: [PATCH] compiler-rt: Undef _TIME_BITS along with _FILE_OFFSET_BITS in |
diff --git a/recipes-devtools/clang/clang/0031-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 48e3d7a..764cf6e 100644 --- a/recipes-devtools/clang/clang/0031-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 @@ | |||
1 | From ac240fbfa07115791271abdbfde256ea0f0c64c6 Mon Sep 17 00:00:00 2001 | 1 | From 7d99373f68757b17fe88bcf24b978c2721bf181e Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Thu, 31 Aug 2023 18:14:47 +0200 | 3 | Date: Thu, 31 Aug 2023 18:14:47 +0200 |
4 | Subject: [PATCH] ToolChains/Gnu.cpp: ARMLibDirs search also in lib32 | 4 | Subject: [PATCH] ToolChains/Gnu.cpp: ARMLibDirs search also in lib32 |
@@ -55,10 +55,10 @@ 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 | ||
57 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 57 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
58 | index 4ec4976a6a0c..d5cfb99686d1 100644 | 58 | index 868d32f501e8..beed8d34a127 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 | @@ -2428,7 +2428,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( |
62 | static const char *const AArch64beLibDirs[] = {"/lib"}; | 62 | static const char *const AArch64beLibDirs[] = {"/lib"}; |
63 | static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu"}; | 63 | static const char *const AArch64beTriples[] = {"aarch64_be-none-linux-gnu"}; |
64 | 64 | ||
@@ -68,10 +68,10 @@ index 4ec4976a6a0c..d5cfb99686d1 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", |
70 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 70 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
71 | index 9af52769b09a..33e8ae99ba1d 100644 | 71 | index ec1705af3cbd..75b32624b778 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 | @@ -199,6 +199,7 @@ static StringRef getOSLibDir(const llvm::Triple &Triple, const ArgList &Args) { |
75 | // reasoning about oslibdir spellings with the lib dir spellings in the | 75 | // reasoning about oslibdir spellings with the lib dir spellings in the |
76 | // GCCInstallationDetector, but that is a more significant refactoring. | 76 | // GCCInstallationDetector, but that is a more significant refactoring. |
77 | if (Triple.getArch() == llvm::Triple::x86 || Triple.isPPC32() || | 77 | if (Triple.getArch() == llvm::Triple::x86 || Triple.isPPC32() || |
diff --git a/recipes-devtools/clang/clang/0032-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 019ed3d..27b4652 100644 --- a/recipes-devtools/clang/clang/0032-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 @@ | |||
1 | From 05d5bc0e32b8275f91421b24fc86494b9e81815d Mon Sep 17 00:00:00 2001 | 1 | From 28f2573afd688996d73476e50f61dda416236bda Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 3 Feb 2024 16:47:10 -0800 | 3 | Date: Sat, 3 Feb 2024 16:47:10 -0800 |
4 | Subject: [PATCH] clang/llvm: Add OE specific ABI triple for N32 ABI | 4 | Subject: [PATCH] clang/llvm: Add OE specific ABI triple for N32 ABI |
@@ -14,10 +14,10 @@ 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 | ||
16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp | 16 | diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp |
17 | index d5cfb99686d1..926455ac6680 100644 | 17 | index beed8d34a127..c47b93a4e142 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 | @@ -2491,6 +2491,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( |
21 | 21 | ||
22 | static const char *const MIPSN32LibDirs[] = {"/lib32"}; | 22 | static const char *const MIPSN32LibDirs[] = {"/lib32"}; |
23 | static const char *const MIPSN32Triples[] = {"mips64-linux-gnuabin32", | 23 | static const char *const MIPSN32Triples[] = {"mips64-linux-gnuabin32", |
@@ -26,10 +26,10 @@ index d5cfb99686d1..926455ac6680 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[] = { |
28 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp | 28 | diff --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp |
29 | index 33e8ae99ba1d..58badf20d1b3 100644 | 29 | index 75b32624b778..b1d9c171df81 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 | @@ -139,7 +139,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, |
33 | return IsMipsR6 ? "mipsisa32r6el-linux-gnu" : "mipsel-linux-gnu"; | 33 | return IsMipsR6 ? "mipsisa32r6el-linux-gnu" : "mipsel-linux-gnu"; |
34 | case llvm::Triple::mips64: { | 34 | case llvm::Triple::mips64: { |
35 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6" : "mips64") + | 35 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6" : "mips64") + |
@@ -38,7 +38,7 @@ index 33e8ae99ba1d..58badf20d1b3 100644 | |||
38 | if (D.getVFS().exists(concat(SysRoot, "/lib", MT))) | 38 | if (D.getVFS().exists(concat(SysRoot, "/lib", MT))) |
39 | return MT; | 39 | return MT; |
40 | if (D.getVFS().exists(concat(SysRoot, "/lib/mips64-linux-gnu"))) | 40 | if (D.getVFS().exists(concat(SysRoot, "/lib/mips64-linux-gnu"))) |
41 | @@ -145,7 +145,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, | 41 | @@ -148,7 +148,7 @@ std::string Linux::getMultiarchTriple(const Driver &D, |
42 | } | 42 | } |
43 | case llvm::Triple::mips64el: { | 43 | case llvm::Triple::mips64el: { |
44 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6el" : "mips64el") + | 44 | std::string MT = std::string(IsMipsR6 ? "mipsisa64r6el" : "mips64el") + |
@@ -48,10 +48,10 @@ index 33e8ae99ba1d..58badf20d1b3 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"))) |
50 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp | 50 | diff --git a/llvm/lib/TargetParser/Triple.cpp b/llvm/lib/TargetParser/Triple.cpp |
51 | index 32adf92c47bf..3411e3c968a2 100644 | 51 | index 97f426dd863b..dc57d5ff2d4a 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 | @@ -319,7 +319,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { | 54 | @@ -336,7 +336,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { |
55 | case GNU: return "gnu"; | 55 | case GNU: return "gnu"; |
56 | case GNUT64: return "gnut64"; | 56 | case GNUT64: return "gnut64"; |
57 | case GNUABI64: return "gnuabi64"; | 57 | case GNUABI64: return "gnuabi64"; |
@@ -60,7 +60,7 @@ index 32adf92c47bf..3411e3c968a2 100644 | |||
60 | case GNUEABI: return "gnueabi"; | 60 | case GNUEABI: return "gnueabi"; |
61 | case GNUEABIT64: return "gnueabit64"; | 61 | case GNUEABIT64: return "gnueabit64"; |
62 | case GNUEABIHF: return "gnueabihf"; | 62 | case GNUEABIHF: return "gnueabihf"; |
63 | @@ -695,6 +695,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { | 63 | @@ -719,6 +719,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) |
@@ -68,7 +68,7 @@ index 32adf92c47bf..3411e3c968a2 100644 | |||
68 | .StartsWith("gnuabi64", Triple::GNUABI64) | 68 | .StartsWith("gnuabi64", Triple::GNUABI64) |
69 | .StartsWith("gnueabihft64", Triple::GNUEABIHFT64) | 69 | .StartsWith("gnueabihft64", Triple::GNUEABIHFT64) |
70 | .StartsWith("gnueabihf", Triple::GNUEABIHF) | 70 | .StartsWith("gnueabihf", Triple::GNUEABIHF) |
71 | @@ -1002,6 +1003,7 @@ Triple::Triple(const Twine &Str) | 71 | @@ -1035,6 +1036,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/0033-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 97554cb..4ca259b 100644 --- a/recipes-devtools/clang/clang/0033-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 @@ | |||
1 | From a1b090d189ebc5ccda088f222a927fb6e225588d Mon Sep 17 00:00:00 2001 | 1 | From c826b0d4aff98d44672ded6be2f6b04b15554e3f Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 14 May 2024 22:04:43 -0700 | 3 | Date: Tue, 14 May 2024 22:04:43 -0700 |
4 | Subject: [PATCH] llvm: Add libunwind.pc.in and llvm-config scripts | 4 | Subject: [PATCH] llvm: Add libunwind.pc.in and llvm-config scripts |
diff --git a/recipes-devtools/clang/clang/0034-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 0eebe63..da32f37 100644 --- a/recipes-devtools/clang/clang/0034-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 @@ | |||
1 | From 47a9749e0dcd1c7dd85922610434ce63d5fe8bd6 Mon Sep 17 00:00:00 2001 | 1 | From eab8305134f5b43204ac2c7976c90741d93da70f Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <martin.jansa@gmail.com> | 2 | From: Martin Jansa <martin.jansa@gmail.com> |
3 | Date: Fri, 13 Sep 2024 13:38:08 +0200 | 3 | Date: Fri, 13 Sep 2024 13:38:08 +0200 |
4 | Subject: [PATCH] scan-build-py: respect LLVM_LIBDIR_SUFFIX like other tools do | 4 | Subject: [PATCH] scan-build-py: respect LLVM_LIBDIR_SUFFIX like other tools do |
diff --git a/recipes-devtools/clang/clang/0035-compiler-rt-Do-not-pass-target-to-clang-compiler.patch b/recipes-devtools/clang/clang/0035-compiler-rt-Do-not-pass-target-to-clang-compiler.patch new file mode 100644 index 0000000..c454327 --- /dev/null +++ b/recipes-devtools/clang/clang/0035-compiler-rt-Do-not-pass-target-to-clang-compiler.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 7e387310a4904eaf2c83b781b95c8cf60243c332 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 13 Mar 2025 00:30:38 -0700 | ||
4 | Subject: [PATCH] compiler-rt: Do not pass --target to clang compiler | ||
5 | |||
6 | In OE we use <tuple>-clang and <tuple>-clang++ which | ||
7 | should resolve the --target correctly. | ||
8 | |||
9 | Upstream-Status: Inappropriate [ OE-Specific ] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | compiler-rt/lib/fuzzer/CMakeLists.txt | 4 ---- | ||
13 | 1 file changed, 4 deletions(-) | ||
14 | |||
15 | diff --git a/compiler-rt/lib/fuzzer/CMakeLists.txt b/compiler-rt/lib/fuzzer/CMakeLists.txt | ||
16 | index 6db24610df1f..692e194c2a98 100644 | ||
17 | --- a/compiler-rt/lib/fuzzer/CMakeLists.txt | ||
18 | +++ b/compiler-rt/lib/fuzzer/CMakeLists.txt | ||
19 | @@ -140,10 +140,6 @@ if(OS_NAME MATCHES "Android|Linux|Fuchsia" AND | ||
20 | COMPILER_RT_LIBCXXABI_PATH) | ||
21 | macro(partially_link_libcxx name dir arch) | ||
22 | get_target_flags_for_arch(${arch} target_cflags) | ||
23 | - if(CMAKE_CXX_COMPILER_ID MATCHES Clang) | ||
24 | - get_compiler_rt_target(${arch} target) | ||
25 | - set(target_cflags --target=${target} ${target_cflags}) | ||
26 | - endif() | ||
27 | set(cxx_${arch}_merge_dir "${CMAKE_CURRENT_BINARY_DIR}/cxx_${arch}_merge.dir") | ||
28 | file(MAKE_DIRECTORY ${cxx_${arch}_merge_dir}) | ||
29 | add_custom_command(TARGET clang_rt.${name}-${arch} POST_BUILD | ||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 582820d..a6d9c4a 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -6,16 +6,16 @@ LIC_FILES_CHKSUM = "file://llvm/LICENSE.TXT;md5=${LLVMMD5SUM} \ | |||
6 | LICENSE = "Apache-2.0-with-LLVM-exception" | 6 | LICENSE = "Apache-2.0-with-LLVM-exception" |
7 | 7 | ||
8 | # Snapshot | 8 | # Snapshot |
9 | #RELEASE ?= "7ba7d8e2f7b6445b60679da826210cdde29eaf8b" | 9 | #RELEASE ?= "a69568efe6c4972e71af295c6577b3412dd57c22" |
10 | #BASEURI ?= "https://api.github.com/repos/llvm/llvm-project/tarball/${RELEASE};downloadfilename=llvm-${PV}-${RELEASE}.tar.gz" | 10 | #BASEURI ?= "https://api.github.com/repos/llvm/llvm-project/tarball/${RELEASE};downloadfilename=llvm-${PV}-${RELEASE}.tar.gz" |
11 | #SOURCEDIR ?= "llvm-llvm-project-${@'${RELEASE}'[0:7]}" | 11 | #SOURCEDIR ?= "llvm-llvm-project-${@'${RELEASE}'[0:7]}" |
12 | #SRC_URI[sha256sum] = "cca3fa1c6efb72bd8bc22b926a2c5551e6b8560d95828452bc62b9140cb87a90" | 12 | #SRC_URI[sha256sum] = "aed4f66cd72867b36cc55a0588436933c3d58d3e61ca782b6bf57605d3fdcb09" |
13 | 13 | ||
14 | # GA Release | 14 | # GA Release |
15 | RELEASE ?= "${PV}" | 15 | RELEASE ?= "${PV}" |
16 | BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz" | 16 | BASEURI ?= "${LLVM_HTTP}/llvm-project/releases/download/llvmorg-${PV}/llvm-project-${PV}.src.tar.xz" |
17 | SOURCEDIR ?= "llvm-project-${PV}.src" | 17 | SOURCEDIR ?= "llvm-project-${PV}.src" |
18 | SRC_URI[sha256sum] = "82401fea7b79d0078043f7598b835284d6650a75b93e64b6f761ea7b63097501" | 18 | SRC_URI[sha256sum] = "4579051e3c255fb4bb795d54324f5a7f3ef79bd9181e44293d7ee9a7f62aad9a" |
19 | 19 | ||
20 | SRC_URI = "\ | 20 | SRC_URI = "\ |
21 | ${BASEURI} \ | 21 | ${BASEURI} \ |
@@ -53,6 +53,7 @@ SRC_URI = "\ | |||
53 | file://0032-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch \ | 53 | file://0032-clang-llvm-Add-OE-specific-ABI-triple-for-N32-ABI.patch \ |
54 | file://0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch \ | 54 | file://0033-llvm-Add-libunwind.pc.in-and-llvm-config-scripts.patch \ |
55 | file://0034-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch \ | 55 | file://0034-scan-build-py-respect-LLVM_LIBDIR_SUFFIX-like-other-.patch \ |
56 | file://0035-compiler-rt-Do-not-pass-target-to-clang-compiler.patch \ | ||
56 | " | 57 | " |
57 | # Fallback to no-PIE if not set | 58 | # Fallback to no-PIE if not set |
58 | GCCPIE ??= "" | 59 | GCCPIE ??= "" |