configure: Fix the nasm version detection.
I used the nasm with unstable version while compiling SPDK with ISA-L. And when running nasm -v, it shows: NASM version 2.16rc0 compiled on May 27 2021 So the version checking in the script is not correct, it will get "2.16rc0", but not "2.16". Then the version comparison will fail. This patch will fix such issue when users use an unstable nasm and it also works for the stable version. Change-Id: I950458f681642d7e1f5fc69acf2ced2e1342c9cf Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8082 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
cfff04aea2
commit
d172854aa7
2
configure
vendored
2
configure
vendored
@ -166,7 +166,7 @@ fi
|
||||
|
||||
#check nasm only on x86
|
||||
if [[ $arch == x86_64* ]]; then
|
||||
ver=$(nasm -v 2> /dev/null | awk '{print $3}')
|
||||
ver=$(nasm -v 2> /dev/null | awk '{print $3}' | awk -Fr '{print $1}')
|
||||
if lt "$ver" 2.14; then
|
||||
# ISA-L, compression & crypto require NASM version 2.14 or newer.
|
||||
CONFIG[ISAL]=n
|
||||
|
Loading…
Reference in New Issue
Block a user