Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
MakeMakefile#append_cflags
append_cflags(flags, **opts)
lib/mkmf.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/mkmf.rb, line 1102
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.