Skip to content

Commit

Permalink
[Truffle] Make native openssl the default and replace JRUBY_TRUFFLE_N…
Browse files Browse the repository at this point in the history
…ATIVE_OPENSSL with JRUBY_TRUFFLE_SHIM_OPENSSL
  • Loading branch information
chrisseaton committed Sep 26, 2016
1 parent fffdf8f commit df5f2b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ruby/truffle/truffle/openssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
# GNU General Public License version 2
# GNU Lesser General Public License version 2.1

if ENV['JRUBY_TRUFFLE_NATIVE_OPENSSL']
require_relative '../openssl/openssl'
else
if ENV['JRUBY_TRUFFLE_SHIM_OPENSSL']
# 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
require_relative '../openssl/openssl'
end

0 comments on commit df5f2b2

Please sign in to comment.