Skip to content

Commit

Permalink
feat: add fetch and --offline to build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
banditopazzo committed Nov 7, 2023
1 parent 6e9ede2 commit 65cde35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/cargo_bin.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ CARGO_MANIFEST_PATH ?= "${S}/Cargo.toml"
FILES:${PN}-dev += "${libdir}/*.rlib"

CARGO_BUILD_FLAGS = "\
--offline \
--verbose \
--manifest-path ${CARGO_MANIFEST_PATH} \
--target=${RUST_TARGET} \
Expand All @@ -51,6 +52,10 @@ CARGO_BUILD_FLAGS = "\
${EXTRA_CARGO_FLAGS} \
"

cargo_bin_do_fetch() {
cargo fetch
}

cargo_bin_do_configure() {
mkdir -p "${B}"
mkdir -p "${CARGO_HOME}"
Expand Down

0 comments on commit 65cde35

Please sign in to comment.