summaryrefslogtreecommitdiff
path: root/variable.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-06-14 12:05:33 -0400
committergit <svn-admin@ruby-lang.org>2022-06-15 01:05:51 +0900
commit9357e310fb420bab7092a665be7875272820e2a3 (patch)
tree8fa170b7a753086989e0713219ffd4c33caf7cc1 /variable.h
parent9f09397bfe6762bf19ef47b2f60988e49b80560d (diff)
[ruby/psych] Fix libyaml download failure rescue under miniruby
I tried to build Ruby on a system without libyaml today and realized that my attempt from <https://github.com/ruby/psych/pull/557> doesn't fix the error in <https://github.com/ruby/psych/issues/552>. I still got the same `LoadError` from `digest` which stopped the build. Since `LoadError` is not a `StandardError`, a plain `rescue` doesn't catch it. Catch `LoadError` explicitly instead and reduce the scope of the `begin` block. I tested this change in a Ruby build on macOS without libyaml installed and confirmed that `make` continues with a warning instead of aborting: *** Following extensions are not compiled: psych: Could not be configured. It will not be installed. ... This should address <https://bugs.ruby-lang.org/issues/18790>. https://github.com/ruby/psych/commit/251289ba83
Diffstat (limited to 'variable.h')
0 files changed, 0 insertions, 0 deletions