Skip to content

Commit

Permalink
Don't use mkmf to generate dummy Makefile
Browse files Browse the repository at this point in the history
GitHub: fix GH-153

mkmf requires fileutils. JRuby doesn't like it.
  • Loading branch information
kou committed Oct 18, 2024
1 parent 1f818e4 commit 6962460
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ext/fiddle/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# frozen_string_literal: true
require 'mkmf'

require "rbconfig"

unless RUBY_ENGINE == "ruby"
File.write('Makefile', dummy_makefile("").join)
File.write('Makefile', <<-MAKEFILE)
all install clean:
#{RbConfig::CONFIG["NULLCMD"]}
.PHONY: all install clean
MAKEFILE
return
end

require 'mkmf'

# :stopdoc:

def gcc?
Expand Down

0 comments on commit 6962460

Please sign in to comment.