File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1414import bz2
1515
1616from distutils .spawn import find_executable as which
17+ from distutils .version import StrictVersion
1718
1819# If not run from node/, cd to node/.
1920os .chdir (os .path .dirname (__file__ ) or '.' )
@@ -1231,10 +1232,10 @@ def without_ssl_error(option):
12311232 # supported asm compiler for AVX2. See https://github.com/openssl/openssl/
12321233 # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69
12331234 openssl110_asm_supported = \
1234- ('gas_version' in variables and float (variables ['gas_version' ]) >= 2.23 ) or \
1235- ('xcode_version' in variables and float (variables ['xcode_version' ]) >= 5.0 ) or \
1236- ('llvm_version' in variables and float (variables ['llvm_version' ]) >= 3.3 ) or \
1237- ('nasm_version' in variables and float (variables ['nasm_version' ]) >= 2.10 )
1235+ ('gas_version' in variables and StrictVersion (variables ['gas_version' ]) >= StrictVersion ( ' 2.23' ) ) or \
1236+ ('xcode_version' in variables and StrictVersion (variables ['xcode_version' ]) >= StrictVersion ( ' 5.0' ) ) or \
1237+ ('llvm_version' in variables and StrictVersion (variables ['llvm_version' ]) >= StrictVersion ( ' 3.3' ) ) or \
1238+ ('nasm_version' in variables and StrictVersion (variables ['nasm_version' ]) >= StrictVersion ( ' 2.10' ) )
12381239
12391240 if is_x86 and not openssl110_asm_supported :
12401241 error ('''Did not find a new enough assembler, install one or build with
You can’t perform that action at this time.
0 commit comments