Skip to content
Draft
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
9 changes: 9 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ if [ "${USING_CONTAINER_RUSTC:-}" = 1 ]; then
rustup target add "$target"
fi

# Make all linker warnings errors
if [[ "$target" == *"-apple-"* || "$target" == "thumb"* ]]; then
extra_rustflags=""
else
extra_rustflags=" -Clink-arg=-Wl,--fatal-warnings"
fi

export RUSTFLAGS="${RUSTFLAGS:-}$extra_rustflags"

# Test our implementation
if [ "${BUILD_ONLY:-}" = "1" ]; then
echo "no tests to run for build-only targets"
Expand Down
Loading