diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-06-28 00:57:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-06-28 01:03:21 +0900 |
commit | c405a8d37abacfe9d2ceee165c59bc58c6982bd2 (patch) | |
tree | f94e028bd37b5954e2b8b6c9e538af3ff9d43e50 /ext/fiddle/extconf.rb | |
parent | f2bcdc7283f2137e0916e251df3a52c40b1f6151 (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.rb | 2 |
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)} |