diff options
| -rw-r--r-- | meta/classes-recipe/rust-common.bbclass | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/classes-recipe/rust-common.bbclass b/meta/classes-recipe/rust-common.bbclass index 93bf6c8be6..3338de7502 100644 --- a/meta/classes-recipe/rust-common.bbclass +++ b/meta/classes-recipe/rust-common.bbclass | |||
| @@ -53,12 +53,9 @@ def rust_base_triple(d, thing): | |||
| 53 | else: | 53 | else: |
| 54 | arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing))) | 54 | arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing))) |
| 55 | 55 | ||
| 56 | # When bootstrapping rust-native, BUILD must be the same as upstream snapshot tarballs | 56 | # Substituting "unknown" when vendor is empty will match rust's standard |
| 57 | bpn = d.getVar('BPN') | 57 | # targets when building native recipes (including rust-native itself) |
| 58 | if thing == "BUILD" and bpn in ["rust"]: | 58 | vendor = d.getVar('{}_VENDOR'.format(thing)) or "-unknown" |
| 59 | return arch + "-unknown-linux-gnu" | ||
| 60 | |||
| 61 | vendor = d.getVar('{}_VENDOR'.format(thing)) | ||
| 62 | 59 | ||
| 63 | # Default to glibc | 60 | # Default to glibc |
| 64 | libc = "-gnu" | 61 | libc = "-gnu" |
