Skip to content
Snippets Groups Projects
Commit 583f6c41 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'faster_driver_rebuild' into 'master'

Build all drivers in parallel

See merge request redox-os/cookbook!345
parents 655de53e 66730fed
No related branches found
No related tags found
No related merge requests found
...@@ -47,15 +47,13 @@ case "${TARGET}" in ...@@ -47,15 +47,13 @@ case "${TARGET}" in
esac esac
mkdir -pv "${COOKBOOK_STAGE}/bin" 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[@]}" for bin in "${BINS[@]}"
do 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" cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin"
done done
......
...@@ -32,15 +32,13 @@ esac ...@@ -32,15 +32,13 @@ esac
#Build each driver in the list #Build each driver in the list
mkdir -pv "${COOKBOOK_STAGE}/bin" 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[@]}" for bin in "${BINS[@]}"
do 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" cp -v "target/${TARGET}/release/${bin}" "${COOKBOOK_STAGE}/bin"
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment