0023-llvm-Insert-anchor-for-adding-OE-distro-vendor-names.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 2cfdb7d3c7f932be6befc9a47f128806cc5c4847 Mon Sep 17 00:00:00 2001
  2. From: Jun Yuan Tan <junyuan.tan@starfivetech.com>
  3. Date: Tue, 9 Nov 2021 10:47:18 +0800
  4. Subject: [PATCH 23/34] llvm: Insert anchor for adding OE distro vendor names
  5. This helps in making right detection for OE built gcc toolchains
  6. The //CLANG_EXTRA_OE_VENDORS_CASES string is replaced with list of
  7. additional Ceses based on CLANG_EXTRA_OE_VENDORS variable in
  8. recipes-devtools/clang/llvm-project-source.inc:add_more_target_vendors()
  9. Upstream-Status: Inappropriate [OE-specific]
  10. Rebased to LLVM 14.0.0 by Jun Yuan Tan
  11. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  12. Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
  13. Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
  14. ---
  15. llvm/lib/Support/Triple.cpp | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
  18. index 88311546354b..8b2745deae88 100644
  19. --- a/llvm/lib/Support/Triple.cpp
  20. +++ b/llvm/lib/Support/Triple.cpp
  21. @@ -496,7 +496,7 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
  22. .Case("amd", Triple::AMD)
  23. .Case("mesa", Triple::Mesa)
  24. .Case("suse", Triple::SUSE)
  25. - .Case("oe", Triple::OpenEmbedded)
  26. + .Case("oe", Triple::OpenEmbedded)//CLANG_EXTRA_OE_VENDORS_CASES
  27. .Default(Triple::UnknownVendor);
  28. }
  29. --
  30. 2.33.1