1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-18 21:23:55 +02:00

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 <yorkiefixer@gmail.com>
(cherry picked from commit 65a561fd09)
This commit is contained in:
Yorkie Liu 2019-11-19 13:41:10 +08:00 committed by Hauke Mehrtens
parent 3a863da268
commit a7d880e830

View File

@ -85,7 +85,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" \
) \