From e98464d2c886e010aac304f39a439ded7dc6131c Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 30 May 2022 11:13:09 +0200 Subject: [PATCH] build(crypto): make clang version cross-platform compatible --- crypto/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/Makefile b/crypto/Makefile index a6513563a1..6091eaf5f5 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -1,5 +1,5 @@ # CLANG_VERSION is empty if the compiler is not clang-based -CLANG_VERSION = $(shell $(CC) --version | grep -Po "clang version \K[\d\.]+") +CLANG_VERSION = $(shell $(CC) --version | sed -nr 's/^.*clang version ([0-9.]+).*$$/\1/p') CLANG_VERSION_MAJOR = $(shell echo $(CLANG_VERSION) | cut -f1 -d.) # determine specific version ranges