diff options
author | Sutou Kouhei <[email protected]> | 2024-10-23 06:07:38 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-10-26 18:44:15 +0900 |
commit | 2ec2051f1f292936ccd50fa3a45b724866b9c3ba (patch) | |
tree | 351483d5ecbb2bc9f6b90fabfad9e72ae7fdf034 /ext/fiddle/extconf.rb | |
parent | a51007fc35da3b5cc6312e335d38ee7a37215bcc (diff) |
[ruby/fiddle] Don't use mkmf to generate dummy Makefile
(https://github.com/ruby/fiddle/pull/155)
GitHub: fix https://github.com/ruby/fiddle/pull/153
mkmf requires fileutils. JRuby doesn't like it.
https://github.com/ruby/fiddle/commit/df4bd21fc3
Diffstat (limited to 'ext/fiddle/extconf.rb')
-rw-r--r-- | ext/fiddle/extconf.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index 63eacf2c81..36e9bd56cb 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -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? |