diff options
| author | Yorkie Liu | 2019-11-19 05:41:10 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2019-12-22 23:04:18 +0000 |
| commit | 65a561fd0919eafff2363ae8324db64be2a57f77 (patch) | |
| tree | e2eff65bcbb44cdc940866e8e5322cd08da1feae | |
| parent | 77e27e0f5354e3155c9951a0d5e570e36d548f1c (diff) | |
| download | openwrt-65a561fd0919eafff2363ae8324db64be2a57f77.tar.gz | |
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>
| -rw-r--r-- | toolchain/gcc/common.mk | 2 |
1 files changed, 1 insertions, 1 deletions
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" \ ) \ |