From: Yorkie Liu Date: Tue, 19 Nov 2019 05:41:10 +0000 (+0800) Subject: toolchain/gcc: correct the check expr for newer clang X-Git-Tag: v21.02.0-rc1~4283 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=65a561fd0919eafff2363ae8324db64be2a57f77;p=openwrt%2Fopenwrt.git toolchain/gcc: correct the check expr for newer clang This fixes gcc build error within clang 11.0, it tweaks the version string from LLVM to clang. Signed-off-by: Yorkie Liu --- diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 8ce8d84a5f..24c923abef 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -89,7 +89,7 @@ endif GCC_CONFIGURE:= \ SHELL="$(BASH)" \ - $(if $(shell gcc --version 2>&1 | grep LLVM), \ + $(if $(shell gcc --version 2>&1 | grep -E "Apple.(LLVM|clang)"), \ CFLAGS="-O2 -fbracket-depth=512 -pipe" \ CXXFLAGS="-O2 -fbracket-depth=512 -pipe" \ ) \