Sha256: 6cd392e5a58b6a41efaaa0e8697933b70c7616d44ef56eac89799ba8e03e5aa6

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

if RUBY_VERSION < '2.0'
  STDERR.print("Ruby version is too old\n")
  exit(1)
end

require 'mkmf'

makefile_config = RbConfig::MAKEFILE_CONFIG

makefile_config['CC'] = ENV['CC'] if ENV['CC']

makefile_config['CFLAGS'] << ' -Wall -Werror'
makefile_config['CFLAGS'] << ' -gdwarf-2 -g3 -O0' if ENV['debug']

if makefile_config['CC'] =~ /clang/
  makefile_config['CFLAGS'] << ' -Wno-unknown-warning-option'
  makefile_config['CFLAGS'] << ' -Wno-ignored-attributes'
end

dir_config('ruby')
with_cflags(makefile_config['CFLAGS']) { create_makefile('byebug/byebug') }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
byebug-8.2.2 ext/byebug/extconf.rb