]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rust-common: Set llvm-target correctly for cross SDK targets
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Jul 2022 10:47:42 +0000 (11:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Jul 2022 10:07:11 +0000 (11:07 +0100)
commitd554161a045d12411f288394e253c54aa4c1257c
tree7f529cb0cf22d82ee5585a0689dcc5abe6e63a0b
parentabb1f3f12b4a02d644414b1af0623894984bb4cd
rust-common: Set llvm-target correctly for cross SDK targets

When a 'BUILD' target is requested we shouldn't be looking at TARGET_SYS but
at BUILD_SYS. Due to the way rust mangles triplets, we need the HOST_SYS triplet
to work with existing code - fixing that issue is a separate patch.

Also drop the arch_abi argument, it doens't make any sense to a getVar() call
and was a copy and paste error.

Based on a patch from Otavio Salvador <otavio@ossystems.com.br> but separated out
and tweaked.

Fixes: bd36593ba3 ("rust-common: Drop LLVM_TARGET and simplify")
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/rust-common.inc