From 18b36908840496a261a2b86fe7574b0764286de4 Mon Sep 17 00:00:00 2001 From: Yi Fan Yu Date: Wed, 10 Mar 2021 15:49:44 -0500 Subject: 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 ` ... not found` when building with clang for WR Linux. Signed-off-by: Yi Fan Yu Signed-off-by: Randy MacLeod --- .../clang/0029-llvm-Recognize-yoe-and-poky-as-OE-distro.patch | 10 +++++++--- 1 file 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 This helps in making right detection for OE built gcc toolchains Signed-off-by: Khem Raj + +Add wrs +Signed-off-by: Yi Fan Yu --- - llvm/lib/Support/Triple.cpp | 2 ++ - 1 file changed, 2 insertions(+) + llvm/lib/Support/Triple.cpp | 3 +++ + 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 4f483c965282..abd181759786 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp -@@ -490,6 +490,8 @@ static Triple::VendorType parseVendor(StringRef VendorName) { +@@ -490,6 +490,9 @@ static Triple::VendorType parseVendor(StringRef VendorName) { .Case("mesa", Triple::Mesa) .Case("suse", Triple::SUSE) .Case("oe", Triple::OpenEmbedded) + .Case("yoe", Triple::OpenEmbedded) + .Case("poky", Triple::OpenEmbedded) ++ .Case("wrs", Triple::OpenEmbedded) .Default(Triple::UnknownVendor); } -- cgit v1.2.3-54-g00ecf