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>
This commit is contained in:
		 Yorkie Liu
					Yorkie Liu
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							77e27e0f53
						
					
				
				
					commit
					65a561fd09
				
			| @@ -89,7 +89,7 @@ endif | |||||||
|  |  | ||||||
| GCC_CONFIGURE:= \ | GCC_CONFIGURE:= \ | ||||||
| 	SHELL="$(BASH)" \ | 	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" \ | 		CFLAGS="-O2 -fbracket-depth=512 -pipe" \ | ||||||
| 		CXXFLAGS="-O2 -fbracket-depth=512 -pipe" \ | 		CXXFLAGS="-O2 -fbracket-depth=512 -pipe" \ | ||||||
| 	) \ | 	) \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user