Skip to content

Commit

Permalink
Merge pull request #106 from eregon/truffleruby
Browse files Browse the repository at this point in the history
Skip debase extconf.rb on non-CRuby
  • Loading branch information
hurricup authored Dec 19, 2023
2 parents ea7706e + 06bdb3c commit 551b63d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/attach/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
if defined?(RUBY_ENGINE) && RUBY_ENGINE != 'ruby'
# create dummy Makefile to indicate success
f = File.open(File.join(File.dirname(__FILE__), "Makefile"), "w")
f.write("all:\n\techo all\ninstall:\n\techo installed\n")
Expand Down
2 changes: 1 addition & 1 deletion ext/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
if defined?(RUBY_ENGINE) && RUBY_ENGINE != 'ruby'
# create dummy Makefile to indicate success
f = File.open(File.join(File.dirname(__FILE__), "Makefile"), "w")
f.write("all:\n\techo all\ninstall:\n\techo installed\n")
Expand Down
5 changes: 5 additions & 0 deletions lib/debase.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
if defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE
require 'debase/rbx'
elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby'
require "debase/version"

Debugger = Module.new
return
else
require "debase_internals"
end
Expand Down

0 comments on commit 551b63d

Please sign in to comment.