summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYi Fan Yu <yifan.yu@windriver.com>2021-03-10 15:49:44 -0500
committerKhem Raj <raj.khem@gmail.com>2021-03-11 10:10:38 -0800
commit18b36908840496a261a2b86fe7574b0764286de4 (patch)
tree86cd0e185d68d4872f5627e03af09db3a81dc2fe
parent64386310b425bb6eb51c1f4c4590af5ed5435ea9 (diff)
downloadmeta-clang-18b36908840496a261a2b86fe7574b0764286de4.tar.gz
clang: Add 'wrs' to OE-distro
Add 'wrs' to OE-distro so it will now also find the correct header files for WR Linux. Solve `<climits> <algorithm> ... not found` when building with clang for WR Linux. Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
-rw-r--r--recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch10
1 files changed, 7 insertions, 3 deletions
diff --git a/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch b/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch
index 6eeaef0..16bc8be 100644
--- a/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch
+++ b/recipes-devtools/clang/clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch
@@ -6,20 +6,24 @@ Subject: [PATCH] llvm: Recognize yoe and poky as OE distro
6This helps in making right detection for OE built gcc toolchains 6This helps in making right detection for OE built gcc toolchains
7 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10Add wrs
11Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
9--- 12---
10 llvm/lib/Support/Triple.cpp | 2 ++ 13 llvm/lib/Support/Triple.cpp | 3 +++
11 1 file changed, 2 insertions(+) 14 1 file changed, 3 insertions(+)
12 15
13diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp 16diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
14index 4f483c965282..abd181759786 100644 17index 4f483c965282..abd181759786 100644
15--- a/llvm/lib/Support/Triple.cpp 18--- a/llvm/lib/Support/Triple.cpp
16+++ b/llvm/lib/Support/Triple.cpp 19+++ b/llvm/lib/Support/Triple.cpp
17@@ -490,6 +490,8 @@ static Triple::VendorType parseVendor(StringRef VendorName) { 20@@ -490,6 +490,9 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
18 .Case("mesa", Triple::Mesa) 21 .Case("mesa", Triple::Mesa)
19 .Case("suse", Triple::SUSE) 22 .Case("suse", Triple::SUSE)
20 .Case("oe", Triple::OpenEmbedded) 23 .Case("oe", Triple::OpenEmbedded)
21+ .Case("yoe", Triple::OpenEmbedded) 24+ .Case("yoe", Triple::OpenEmbedded)
22+ .Case("poky", Triple::OpenEmbedded) 25+ .Case("poky", Triple::OpenEmbedded)
26+ .Case("wrs", Triple::OpenEmbedded)
23 .Default(Triple::UnknownVendor); 27 .Default(Triple::UnknownVendor);
24 } 28 }
25 29