aboutsummaryrefslogtreecommitdiffstats
path: root/mk/toolchain/clang/rte.toolchain-compat.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/toolchain/clang/rte.toolchain-compat.mk')
-rw-r--r--mk/toolchain/clang/rte.toolchain-compat.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/toolchain/clang/rte.toolchain-compat.mk b/mk/toolchain/clang/rte.toolchain-compat.mk
index b734413b..9e095d38 100644
--- a/mk/toolchain/clang/rte.toolchain-compat.mk
+++ b/mk/toolchain/clang/rte.toolchain-compat.mk
@@ -38,7 +38,8 @@
# find out CLANG version
-CLANG_VERSION := $(shell $(CC) -v 2>&1 | grep version | sed "s/.*version \([0-9]*\.[0-9]*\).*/\1/")
+CLANG_VERSION := $(shell $(CC) -v 2>&1 | \
+ sed -n "s/.*version \([0-9]*\.[0-9]*\).*/\1/p")
CLANG_MAJOR_VERSION := $(shell echo $(CLANG_VERSION) | cut -f1 -d.)