projects
/
openwrt
/
staging
/
luka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77e27e0
)
toolchain/gcc: correct the check expr for newer clang
author
Yorkie Liu
<yorkiefixer@gmail.com>
Tue, 19 Nov 2019 05:41:10 +0000
(13:41 +0800)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Sun, 22 Dec 2019 23:04:18 +0000
(
00:04
+0100)
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>
toolchain/gcc/common.mk
patch
|
blob
|
history
diff --git
a/toolchain/gcc/common.mk
b/toolchain/gcc/common.mk
index 8ce8d84a5f3e577af73e117b26c7d42425160694..24c923abef51d10f78cea13f3585ffc092f13eb8 100644
(file)
--- 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" \
) \