Sha256: ef067e41d41362414318c9a1e9cd2e64793ad15b0e60611751bd83f54592970f

Contents?: true

Size: 577 Bytes

Versions: 21

Compression:

Stored size: 577 Bytes

Contents

require("mkmf")
$CFLAGS << ' -O3 '
$CFLAGS << ' -std=c99'

# ruby.h has some -Wpedantic fails in some cases
# (e.g. https://github.com/Shopify/bootsnap/issues/15)
unless ['0', '', nil].include?(ENV['BOOTSNAP_PEDANTIC'])
  $CFLAGS << ' -Wall'
  $CFLAGS << ' -Werror'
  $CFLAGS << ' -Wextra'
  $CFLAGS << ' -Wpedantic'

  $CFLAGS << ' -Wno-unused-parameter' # VALUE self has to be there but we don't care what it is.
  $CFLAGS << ' -Wno-keyword-macro' # hiding return
  $CFLAGS << ' -Wno-gcc-compat' # ruby.h 2.6.0 on macos 10.14, dunno
end

create_makefile("bootsnap/bootsnap")

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
bootsnap-1.4.0.pre2 ext/bootsnap/extconf.rb