From 3e25934aaf365c9036878f3086d12674506ea0cd Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 4 Oct 2023 16:48:50 +0200 Subject: [PATCH] Fix build with OECore's built-in rust support Use RUST_HOST_SYS if it's set (per oecore) and only fall back to HOST_SYS otherwise. --- recipes-slint/slint/slint-cpp-v2.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-slint/slint/slint-cpp-v2.inc b/recipes-slint/slint/slint-cpp-v2.inc index ef202ed..cb98320 100644 --- a/recipes-slint/slint/slint-cpp-v2.inc +++ b/recipes-slint/slint/slint-cpp-v2.inc @@ -77,7 +77,8 @@ do_install() { OECMAKE_C_COMPILER = "${RUST_TARGET_CC}" OECMAKE_CXX_COMPILER = "${RUST_TARGET_CXX}" -EXTRA_OECMAKE:append = " -DRust_CARGO_TARGET=${HOST_SYS}" +RUST_CARGO_TARGET = "${@d.getVar('RUST_HOST_SYS') or d.getVar('HOST_SYS')}" +EXTRA_OECMAKE:append = " -DRust_CARGO_TARGET=${RUST_CARGO_TARGET}" EXTRA_OECMAKE:append = " -DFETCHCONTENT_FULLY_DISCONNECTED=OFF" EXTRA_OECMAKE:append = " -DBUILD_TESTING=OFF -DSLINT_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo"