Skip to content

Commit 35f649d

Browse files
committed
Include .rlib files in -dev package
[#119](#119) added the feature to install examples and libraries by default if they exist. An unintended consequence of that though was breaking existing builds when a .rlib file was installed but then not included in the FILES directive. To keep parity with meta-rust we'll start packaging .rlib files in the -dbg package. Signed-off-by: Nick Stevens <[email protected]>
1 parent 7fb12f8 commit 35f649d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/cargo.bbclass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ WRAPPER_DIR = "${WORKDIR}/wrappers"
4040
# Set the Cargo manifest path to the typical location
4141
CARGO_MANIFEST_PATH ?= "${S}/Cargo.toml"
4242

43+
FILES:${PN}-dev += "${libdir}/*.rlib"
44+
4345
CARGO_BUILD_FLAGS = "\
4446
--verbose \
4547
--manifest-path ${CARGO_MANIFEST_PATH} \

0 commit comments

Comments
 (0)