Skip to content

Commit

Permalink
Revert "[Truffle] Make native openssl the default and replace JRUBY_T…
Browse files Browse the repository at this point in the history
…RUFFLE_NATIVE_OPENSSL with JRUBY_TRUFFLE_SHIM_OPENSSL"

This reverts commit df5f2b2.
  • Loading branch information
eregon committed Sep 26, 2016
1 parent 574fd07 commit d4e5f80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ruby/truffle/truffle/openssl.rb
Expand Up @@ -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.