From 38a8db4784a4f6765ed1a6e40682f1e0822995b3 Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Thu, 8 Dec 2022 11:46:02 +0100 Subject: [PATCH] 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 Change-Id: I03d0f3966882faabfff52ad01e132e837fe94433 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15820 Reviewed-by: Aleksey Marchuk Reviewed-by: Tomasz Zawadzki Tested-by: SPDK CI Jenkins --- mk/spdk.common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk index 713f70518..c7b3b5d0c 100644 --- a/mk/spdk.common.mk +++ b/mk/spdk.common.mk @@ -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