File: extconf.rb

package info (click to toggle)
ruby-debug-inspector 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 140 kB
  • sloc: ruby: 96; ansic: 89; sh: 4; makefile: 4
file content (18 lines) | stat: -rwxr-xr-x 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
def fake_makefile
  File.open("Makefile", "w") { |f|
    f.puts '.PHONY: install'
    f.puts 'install:'
    f.puts "\t" + '@echo "This Ruby not supported by/does not require debug_inspector."'
  }
end

def can_compile_extensions?
  RUBY_ENGINE == "ruby" or RUBY_ENGINE == "truffleruby"
end

if can_compile_extensions?
  require 'mkmf'
  create_makefile('debug_inspector')
else
  fake_makefile
end