summaryrefslogtreecommitdiff
path: root/ext/fiddle/extconf.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-28 00:57:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-28 01:03:21 +0900
commitc405a8d37abacfe9d2ceee165c59bc58c6982bd2 (patch)
treef94e028bd37b5954e2b8b6c9e538af3ff9d43e50 /ext/fiddle/extconf.rb
parentf2bcdc7283f2137e0916e251df3a52c40b1f6151 (diff)
[ruby/fiddle] try bundled libffi by default
If no installed libffi found, use bundled libffi unless explicitly `--disable-bundled-libffi` option is given.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3265
Diffstat (limited to 'ext/fiddle/extconf.rb')
-rw-r--r--ext/fiddle/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index b64d50c29e..9836087455 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -37,7 +37,7 @@ unless have_libffi
Dir.glob("#{$srcdir}/libffi-*/").each{|dir| FileUtils.rm_rf(dir)}
extlibs.run(["--cache=#{cache_dir}", ext_dir])
end
- if bundle
+ if bundle != false
libffi_package_name = Dir.glob("#{$srcdir}/libffi-*/")
.map {|n| File.basename(n)}
.max_by {|n| n.scan(/\d+/).map(&:to_i)}