Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
MakeMakefile#append_cflags
append_cflags(flags, *opts)
lib/mkmf.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/mkmf.rb, line 1015
def append_cflags(flags, *opts)
Array(flags).each do |flag|
if checking_for("whether #{flag} is accepted as CFLAGS") {
try_cflags(flag, *opts)
}
$CFLAGS << " " << flag
end
end
end
Check whether each given C compiler flag is acceptable and append it to $CFLAGS if so.