ext/fiddle/extconf.rb in fiddle-1.1.2 vs ext/fiddle/extconf.rb in fiddle-1.1.3
- old
+ new
@@ -1,8 +1,13 @@
# frozen_string_literal: true
require 'mkmf'
+unless RUBY_ENGINE == "ruby"
+ File.write('Makefile', dummy_makefile("").join)
+ return
+end
+
# :stopdoc:
def gcc?
RbConfig::CONFIG["GCC"] == "yes"
end
@@ -216,9 +221,11 @@
if libffi
$LOCAL_LIBS.prepend("#{libffi.a} ").strip! # to exts.mk
$INCFLAGS.gsub!(/-I#{libffi.dir}/, '-I$(LIBFFI_DIR)')
end
+
+have_func("rb_str_to_interned_str")
create_makefile 'fiddle' do |conf|
if !libffi
next conf << "LIBFFI_CLEAN = none\n"
elsif $gnumake && !$nmake
submake_arg = "-C $(LIBFFI_DIR)\n"