File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# Set OPENSSL_PREFIX in ENV to find the OpenSSL headers
10
10
11
+ module Truffle
12
+ OPENSSL_PREFIX_WAS_SET = ENV . key? ( 'OPENSSL_PREFIX' )
13
+ end
14
+
11
15
search_homebrew = -> homebrew {
12
16
if prefix = "#{ homebrew } /opt/[email protected] " and Dir . exist? ( prefix )
13
17
prefix
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def find_openssl_library
110
110
111
111
# TruffleRuby: do not perform all checks again if extconf.h already exists
112
112
extconf_h = "#{ __dir__ } /extconf.h"
113
- if File . exist? ( extconf_h ) && File . mtime ( extconf_h ) >= File . mtime ( __FILE__ )
113
+ if File . exist? ( extconf_h ) && File . mtime ( extconf_h ) >= File . mtime ( __FILE__ ) && ! Truffle :: OPENSSL_PREFIX_WAS_SET
114
114
$extconf_h = extconf_h
115
115
else
116
116
### START of checks
You can’t perform that action at this time.
0 commit comments