mk: suppress broken pipe errors
Replaced grep with a [[ command to get rid of errors like this: collect2: fatal error: ld terminated with signal 13 [Broken pipe] during the build. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I03d0f3966882faabfff52ad01e132e837fe94433 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15820 Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
3f912cf0e9
commit
38a8db4784
@ -71,7 +71,7 @@ COMMON_CFLAGS += -march=$(TARGET_ARCHITECTURE)
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_MACHINE),x86_64)
|
||||
ifneq (,$(shell $(CC) --target-help | grep -qe -mavx512f && echo 1))
|
||||
ifneq (,$(shell [[ $$($(CC) --target-help) == *-mavx512f* ]] && echo 1))
|
||||
# Don't use AVX-512 instructions in SPDK code - it breaks Valgrind for
|
||||
# some cases where compiler decides to hyper-optimize a relatively
|
||||
# simple operation (like int-to-float conversion) using AVX-512
|
||||
|
Loading…
Reference in New Issue
Block a user