Skip to content

Commit

Permalink
Don't use mkmf to generate dummy Makefile (#155)
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 authored Oct 22, 2024
1 parent 7dcb40b commit df4bd21
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 df4bd21

Please sign in to comment.