summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rust/rust-common.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-devtools/rust/rust-common.inc b/meta/recipes-devtools/rust/rust-common.inc
index 621cd4a..ef70c48 100644
--- a/meta/recipes-devtools/rust/rust-common.inc
+++ b/meta/recipes-devtools/rust/rust-common.inc
@@ -309,10 +309,7 @@ def rust_gen_target(d, thing, wd, features, cpu, arch, abi=""):
309 309
310 # build tspec 310 # build tspec
311 tspec = {} 311 tspec = {}
312 if bb.data.inherits_class('cross-canadian', d): 312 tspec['llvm-target'] = d.getVar('RUST_TARGET_SYS', arch_abi)
313 tspec['llvm-target'] = d.getVar('RUST_HOST_SYS', arch_abi)
314 else:
315 tspec['llvm-target'] = d.getVar('RUST_TARGET_SYS', arch_abi)
316 tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi) 313 tspec['data-layout'] = d.getVarFlag('DATA_LAYOUT', arch_abi)
317 tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi)) 314 tspec['max-atomic-width'] = int(d.getVarFlag('MAX_ATOMIC_WIDTH', arch_abi))
318 tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi) 315 tspec['target-pointer-width'] = d.getVarFlag('TARGET_POINTER_WIDTH', arch_abi)