diff options
Diffstat (limited to 'meta/recipes-devtools/rust/rust_1.70.0.bb')
-rw-r--r-- | meta/recipes-devtools/rust/rust_1.70.0.bb | 6 |
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 | } |
68 | addtask rust_setup_snapshot after do_unpack before do_configure | 68 | addtask rust_setup_snapshot after do_unpack before do_configure |
69 | addtask do_test_compile after do_configure do_rust_gen_targets | ||
69 | do_rust_setup_snapshot[dirs] += "${WORKDIR}/rust-snapshot" | 70 | do_rust_setup_snapshot[dirs] += "${WORKDIR}/rust-snapshot" |
70 | do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER" | 71 | do_rust_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER" |
71 | 72 | ||
@@ -223,6 +224,11 @@ FILES:${PN}-dev = "" | |||
223 | do_compile () { | 224 | do_compile () { |
224 | } | 225 | } |
225 | 226 | ||
227 | do_test_compile[dirs] = "${B}" | ||
228 | do_test_compile () { | ||
229 | rust_runx build src/tools/remote-test-server --target "${RUST_TARGET_SYS}" | ||
230 | } | ||
231 | |||
226 | ALLOW_EMPTY:${PN} = "1" | 232 | ALLOW_EMPTY:${PN} = "1" |
227 | 233 | ||
228 | PACKAGES =+ "${PN}-tools-clippy ${PN}-tools-rustfmt" | 234 | PACKAGES =+ "${PN}-tools-clippy ${PN}-tools-rustfmt" |