Skip to content

Commit c1fade5

Browse files
targosMylesBorins
authored andcommitted
build: fix version checks in configure.py
Fixes: #29927 Refs: #29931 PR-URL: #29965 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent dfac2f8 commit c1fade5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎configure.py‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
importbz2
1515

1616
fromdistutils.spawnimportfind_executableaswhich
17+
fromdistutils.versionimportStrictVersion
1718

1819
# If not run from node/, cd to node/.
1920
os.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'invariablesandfloat(variables['gas_version']) >=2.23) or \
1235-
('xcode_version'invariablesandfloat(variables['xcode_version']) >=5.0) or \
1236-
('llvm_version'invariablesandfloat(variables['llvm_version']) >=3.3) or \
1237-
('nasm_version'invariablesandfloat(variables['nasm_version']) >=2.10)
1235+
('gas_version'invariablesandStrictVersion(variables['gas_version']) >=StrictVersion('2.23')) or \
1236+
('xcode_version'invariablesandStrictVersion(variables['xcode_version']) >=StrictVersion('5.0')) or \
1237+
('llvm_version'invariablesandStrictVersion(variables['llvm_version']) >=StrictVersion('3.3')) or \
1238+
('nasm_version'invariablesandStrictVersion(variables['nasm_version']) >=StrictVersion('2.10'))
12381239

12391240
ifis_x86andnotopenssl110_asm_supported:
12401241
error('''Did not find a new enough assembler, install one or build with

0 commit comments

Comments
(0)