Skip to content

Commit

Permalink
Fix build with OECore's built-in rust support
Browse files Browse the repository at this point in the history
Use RUST_HOST_SYS if it's set (per oecore) and only fall back to
HOST_SYS otherwise.
  • Loading branch information
tronical committed Oct 4, 2023
1 parent 88f37d3 commit 3e25934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes-slint/slint/slint-cpp-v2.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e25934

Please sign in to comment.