Merge branch 'faster_driver_rebuild' into 'master'

Build all drivers in parallel

See merge request redox-os/cookbook!345
This commit is contained in:
Jeremy Soller 2024-01-26 17:27:38 +00:00
commit 583f6c413d
2 changed files with 10 additions and 14 deletions

View File

@ -47,15 +47,13 @@ case "${TARGET}" in
esac
mkdir -pv "${COOKBOOK_STAGE}/bin"
export CARGO_PROFILE_RELEASE_OPT_LEVEL=s
export CARGO_PROFILE_RELEASE_PANIC=abort
"${COOKBOOK_CARGO}" build --release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
$(for bin in "${BINS[@]}"; do echo "-p" "${bin}"; done)
for bin in "${BINS[@]}"
do
"${COOKBOOK_CARGO}" rustc --release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
-p "${bin}" \
--bin "${bin}" \
-- \
-C opt-level=s \
-C panic=abort
cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin"
done

View File

@ -32,15 +32,13 @@ esac
#Build each driver in the list
mkdir -pv "${COOKBOOK_STAGE}/bin"
export CARGO_PROFILE_RELEASE_OPT_LEVEL=s
export CARGO_PROFILE_RELEASE_PANIC=abort
"${COOKBOOK_CARGO}" build --release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
$(for bin in "${BINS[@]}"; do echo "-p" "${bin}"; done)
for bin in "${BINS[@]}"
do
"${COOKBOOK_CARGO}" rustc --release \
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
-p "${bin}" \
--bin "${bin}" \
-- \
-C opt-level=s \
-C panic=abort
cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin"
done