Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ build_package_standard() {
fi
if [ -z "$CC" ] && is_mac 1010; then
export CC=clang
elif [ "$ruby_semver" -lt 30200 ] && is_fedora 42; then
elif [[ "$package_var_name" = "RUBY" && "$ruby_semver" -lt 30200 ]] && is_fedora 42; then
# Fedora 42+ has updated to GCC v15. GCC v15 changed the default
# mode from gnu17 to gnu23: https://gcc.gnu.org/gcc-15/changes.html#c
#
Expand Down
6 changes: 6 additions & 0 deletions test/build.bats
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,12 @@ install_package "ruby-3.2.0" "http://ruby-lang.org/ruby/2.0/ruby-3.2.0.tar.gz"
DEF
assert_success

sanitized_output="$(grep -v '^\(->\|==>\)' <<<"$output" || true)"
if [ -n "$sanitized_output" ]; then
echo "expected no warnings, got: $sanitized_output"
return 1
fi

unstub uname
unstub brew
unstub cc
Expand Down