summaryrefslogtreecommitdiff
path: root/ext/psych
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-10-07 12:46:09 +0900
committergit <svn-admin@ruby-lang.org>2022-10-07 12:55:31 +0900
commitfc218e597709e14634535c5836349f7f89a75dc2 (patch)
tree3b9454e3b4289b3bb5f980f1e86946722129a5f7 /ext/psych
parent94d4bea7c9952ac5abe0d8cd473a73e025b468ab (diff)
[ruby/psych] Removed the related condition of --enable-bundled-libyaml
https://github.com/ruby/psych/commit/7c211a43c1
Diffstat (limited to 'ext/psych')
-rw-r--r--ext/psych/extconf.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
index f20d9a259d..24173567b4 100644
--- a/ext/psych/extconf.rb
+++ b/ext/psych/extconf.rb
@@ -15,13 +15,8 @@ unless yaml_source # default to pre-installed libyaml
end
end
-if yaml_source == true
- # search the latest libyaml source under $srcdir
- yaml_source = Dir.glob("#{$srcdir}/yaml{,-*}/").max_by {|n| File.basename(n).scan(/\d+/).map(&:to_i)}
-elsif yaml_source
- yaml_source = yaml_source.gsub(/\$\((\w+)\)|\$\{(\w+)\}/) {ENV[$1||$2]}
-end
if yaml_source
+ yaml_source = yaml_source.gsub(/\$\((\w+)\)|\$\{(\w+)\}/) {ENV[$1||$2]}
yaml_source = yaml_source.chomp("/")
yaml_configure = "#{File.expand_path(yaml_source)}/configure"
unless File.exist?(yaml_configure)