Sha256: 324d1bc467964ded0ab28849a027ffedae04fe272bded0b7ef1e9cb17eea79e4

Contents?: true

Size: 699 Bytes

Versions: 20

Compression:

Stored size: 699 Bytes

Contents

require "mkmf"

# Let's go with a modern version of C! want to intermix declarations and code (ie, don't define
# all variables at the top of the method). If using Visual Studio, you'll need 2019 version
# 16.8 or higher
if RUBY_PLATFORM =~ /mswin/
  $CFLAGS += ' /std:c11'
else
  $CFLAGS += ' -std=c11'
end

# For gcc add -s to strip symbols, reducing library size from 17MB to 78KB (at least on Windows with mingw64)
if RUBY_PLATFORM !~ /mswin/
  $LDFLAGS += ' -s'
end

# And since we are using C99 we want to disable Ruby sending these warnings to gcc
if CONFIG['warnflags']
  CONFIG['warnflags'].gsub!('-Wdeclaration-after-statement', '')
end

create_makefile("ruby_prof")

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
ruby-prof-1.7.1-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.7.1 ext/ruby_prof/extconf.rb
ruby-prof-1.7.0-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.7.0 ext/ruby_prof/extconf.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/ext/ruby_prof/extconf.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/ext/ruby_prof/extconf.rb
ruby-prof-1.6.3-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.6.3 ext/ruby_prof/extconf.rb
ruby-prof-1.6.2-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.6.2 ext/ruby_prof/extconf.rb
ruby-prof-1.6.1 ext/ruby_prof/extconf.rb
ruby-prof-1.6.1-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.5.0-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.5.0 ext/ruby_prof/extconf.rb
ruby-prof-1.4.5-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.4.5 ext/ruby_prof/extconf.rb
ruby-prof-1.4.4-x64-mingw-ucrt ext/ruby_prof/extconf.rb
ruby-prof-1.4.4 ext/ruby_prof/extconf.rb
ruby-prof-1.4.3-x64-mingw32 ext/ruby_prof/extconf.rb
ruby-prof-1.4.3 ext/ruby_prof/extconf.rb