diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-03-18 01:45:00 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-03-18 11:05:30 -0700 |
commit | 2979956a6925c5a167de451fc804738e96d41637 (patch) | |
tree | 7bd1f50f35ed87efd5162833edb9d57bec73c73d /recipes-devtools/clang/llvm-project-source.inc | |
parent | c63c71b03b413a590825861e3fcb1ebed42eb98a (diff) | |
download | meta-clang-2979956a6925c5a167de451fc804738e96d41637.tar.gz |
llvm-project-source: Emit all default MULTILIB_GLOBAL_VARIANTS
This ensures that signature of do_patch does not change between multilib
and non-multilib builds of clang-native, this essentially hardcodes the
multilib variants to lib32 lib64 libx32 which is 99.9% usecase, if you
fall into 0.1% then go ahead and modify MULTILIB_VARIANTS in a bbappend
file and it will be fine.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/llvm-project-source.inc')
-rw-r--r-- | recipes-devtools/clang/llvm-project-source.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes-devtools/clang/llvm-project-source.inc b/recipes-devtools/clang/llvm-project-source.inc index a840030..4afd1bb 100644 --- a/recipes-devtools/clang/llvm-project-source.inc +++ b/recipes-devtools/clang/llvm-project-source.inc | |||
@@ -26,13 +26,14 @@ CLANG_EXTRA_OE_VENDORS ?= "${TARGET_VENDOR} ${SDK_VENDOR}" | |||
26 | # ":" separated the ID in "/etc/os-release" and the triple for finding gcc on this OE DISTRO. | 26 | # ":" separated the ID in "/etc/os-release" and the triple for finding gcc on this OE DISTRO. |
27 | # eg: "poky:poky wrlinux:wrs" | 27 | # eg: "poky:poky wrlinux:wrs" |
28 | CLANG_EXTRA_OE_DISTRO ?= "poky:poky" | 28 | CLANG_EXTRA_OE_DISTRO ?= "poky:poky" |
29 | 29 | # Match with MULTILIB_GLOBAL_VARIANTS | |
30 | MULTILIB_VARIANTS = "lib32 lib64 libx32" | ||
30 | python add_distro_vendor() { | 31 | python add_distro_vendor() { |
31 | import subprocess | 32 | import subprocess |
32 | case = "" | 33 | case = "" |
33 | triple = "" | 34 | triple = "" |
34 | vendors = d.getVar('CLANG_EXTRA_OE_VENDORS') | 35 | vendors = d.getVar('CLANG_EXTRA_OE_VENDORS') |
35 | multilib_variants = (d.getVar("MULTILIB_GLOBAL_VARIANTS") or "").split() | 36 | multilib_variants = (d.getVar("MULTILIB_VARIANTS") or "").split() |
36 | vendors_to_add = [] | 37 | vendors_to_add = [] |
37 | for vendor in vendors.split(): | 38 | for vendor in vendors.split(): |
38 | # convert -yoe into yoe | 39 | # convert -yoe into yoe |