Skip to content
Snippets Groups Projects

Build all drivers in parallel

Merged bjorn3 requested to merge bjorn3/cookbook:faster_driver_rebuild into master
2 files
+ 10
14
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -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
Loading