summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust_1.70.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/rust_1.70.0.bb')
-rw-r--r--meta/recipes-devtools/rust/rust_1.70.0.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.70.0.bb b/meta/recipes-devtools/rust/rust_1.70.0.bb
index 8669291d08..3b9c05a19f 100644
--- a/meta/recipes-devtools/rust/rust_1.70.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.70.0.bb
@@ -66,6 +66,7 @@ do_rust_setup_snapshot () {
66 fi 66 fi
67} 67}
68addtask rust_setup_snapshot after do_unpack before do_configure 68addtask rust_setup_snapshot after do_unpack before do_configure
69addtask do_test_compile after do_configure do_rust_gen_targets
69do_rust_setup_snapshot[dirs] += "${WORKDIR}/rust-snapshot" 70do_rust_setup_snapshot[dirs] += "${WORKDIR}/rust-snapshot"
70do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER" 71do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER"
71 72
@@ -223,6 +224,11 @@ FILES:${PN}-dev = ""
223do_compile () { 224do_compile () {
224} 225}
225 226
227do_test_compile[dirs] = "${B}"
228do_test_compile () {
229 rust_runx build src/tools/remote-test-server --target "${RUST_TARGET_SYS}"
230}
231
226ALLOW_EMPTY:${PN} = "1" 232ALLOW_EMPTY:${PN} = "1"
227 233
228PACKAGES =+ "${PN}-tools-clippy ${PN}-tools-rustfmt" 234PACKAGES =+ "${PN}-tools-clippy ${PN}-tools-rustfmt"