summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/ptest-cargo.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-recipe/ptest-cargo.bbclass b/meta/classes-recipe/ptest-cargo.bbclass
index fd1df9d7c9..198110a81a 100644
--- a/meta/classes-recipe/ptest-cargo.bbclass
+++ b/meta/classes-recipe/ptest-cargo.bbclass
@@ -14,6 +14,7 @@ python do_compile_ptest_cargo() {
14 14
15 cargo = bb.utils.which(d.getVar("PATH"), d.getVar("CARGO")) 15 cargo = bb.utils.which(d.getVar("PATH"), d.getVar("CARGO"))
16 cargo_build_flags = d.getVar("CARGO_BUILD_FLAGS") 16 cargo_build_flags = d.getVar("CARGO_BUILD_FLAGS")
17 packageconfig_confargs = d.getVar("PACKAGECONFIG_CONFARGS")
17 rust_flags = d.getVar("RUSTFLAGS") 18 rust_flags = d.getVar("RUSTFLAGS")
18 manifest_path = d.getVar("CARGO_MANIFEST_PATH") 19 manifest_path = d.getVar("CARGO_MANIFEST_PATH")
19 project_manifest_path = os.path.normpath(manifest_path) 20 project_manifest_path = os.path.normpath(manifest_path)
@@ -21,7 +22,7 @@ python do_compile_ptest_cargo() {
21 22
22 env = os.environ.copy() 23 env = os.environ.copy()
23 env['RUSTFLAGS'] = rust_flags 24 env['RUSTFLAGS'] = rust_flags
24 cmd = f"{cargo} build --tests --message-format json {cargo_build_flags}" 25 cmd = f"{cargo} build --tests --message-format json {cargo_build_flags} {packageconfig_confargs}"
25 bb.note(f"Building tests with cargo ({cmd})") 26 bb.note(f"Building tests with cargo ({cmd})")
26 27
27 try: 28 try: