Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ruby/truffle/truffle/openssl.rb
Original file line number Diff line number Diff line change
@@ -6,15 +6,15 @@
# GNU General Public License version 2
# GNU Lesser General Public License version 2.1

if ENV['JRUBY_TRUFFLE_SHIM_OPENSSL']
if ENV['JRUBY_TRUFFLE_NATIVE_OPENSSL']
$LOAD_PATH.unshift File.expand_path('../../openssl', __FILE__)
require_relative '../openssl/openssl'
else
# If loaded directly simulate as it was not found, it can added only
# explicitly by loading openssl-stubs which makes it look like
# openssl was loaded.

load_error = LoadError.new('cannot load such file -- openssl')
load_error.instance_variable_set :@path, 'openssl'
raise load_error
else
$LOAD_PATH.unshift File.expand_path('../../openssl', __FILE__)
require_relative '../openssl/openssl.rb'
end

0 comments on commit d4e5f80

Please sign in to comment.