Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions scripts/measure_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ PY

elapsed_ms=$(( (end - start) / 1000000 ))

artifact=$(find "$TARGET_DIR/release/deps" \
-type f \
-name 'libmavlink-*.rlib' \
-print \
-quit)
# Cargo also copies the rlib to release/libmavlink.rlib. That path exists in
# the old layout and in the build-dir layout from Rust 1.100, where
# release/deps is gone.
artifact="$TARGET_DIR/release/libmavlink.rlib"

if [ -z "$artifact" ]; then
if [ ! -f "$artifact" ]; then
echo "Unable to locate libmavlink rlib" >&2
exit 1
fi
Expand Down
Loading