diff options
| -rw-r--r-- | meta/recipes-devtools/rust/rust-common.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust-common.inc b/meta/recipes-devtools/rust/rust-common.inc index ef70c48d0f..37abd2cd26 100644 --- a/meta/recipes-devtools/rust/rust-common.inc +++ b/meta/recipes-devtools/rust/rust-common.inc | |||
| @@ -307,9 +307,13 @@ def rust_gen_target(d, thing, wd, features, cpu, arch, abi=""): | |||
| 307 | features = features or d.getVarFlag('FEATURES', arch_abi) or "" | 307 | features = features or d.getVarFlag('FEATURES', arch_abi) or "" |
| 308 | features = features.strip() | 308 | features = features.strip() |
| 309 | 309 | ||
| 310 | llvm_target = d.getVar('RUST_TARGET_SYS') | ||
| 311 | if thing == "BUILD": | ||
| 312 | llvm_target = d.getVar('RUST_HOST_SYS') | ||
| 313 | |||
| 310 | # build tspec | 314 | # build tspec |
| 311 | tspec = {} | 315 | tspec = {} |
| 312 | tspec['llvm-target'] = d.getVar('RUST_TARGET_SYS', arch_abi) | 316 | tspec['llvm-target'] = llvm_target |
| 313 | tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi) | 317 | tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi) |
| 314 | tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi)) | 318 | tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi)) |
| 315 | tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi) | 319 | tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi) |
