mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-30 05:23:00 +00:00 
			
		
		
		
	platformtest.sh: Detect clang compilers
This commit is contained in:
		| @@ -120,11 +120,12 @@ if [ -r "Makefile" ]; then | |||||||
| 		fi | 		fi | ||||||
| 	else | 	else | ||||||
| 		# Non-GCC compiler | 		# Non-GCC compiler | ||||||
| 		$CC --version 2>&1 | grep -i "LLVM" >/dev/null | 		$CC --version 2>&1 | grep -i "clang" >/dev/null | ||||||
| 		if [ $? -eq 0 ]; then | 		if [ $? -eq 0 ]; then | ||||||
| 			COMPILER=$($CC --version 2>/dev/null | head -1 \ | 			COMPILER=$($CC --version 2>/dev/null | head -1 \ | ||||||
| 			  | cut -d'(' -f1 | sed -e 's/version //g' \ | 			  | cut -d'(' -f1 | cut -d'-' -f1 \ | ||||||
| 			  | sed -e 's/Apple /A-/g') | 			  | sed -e 's/version //g' | sed -e 's/Apple /A-/g' \ | ||||||
|  | 			  | sed -e 's/Debian //g' | sed -e 's/LLVM /clang /g') | ||||||
| 		fi | 		fi | ||||||
| 		$CC -version 2>&1 | grep -i "tcc" >/dev/null | 		$CC -version 2>&1 | grep -i "tcc" >/dev/null | ||||||
| 		if [ $? -eq 0 ]; then | 		if [ $? -eq 0 ]; then | ||||||
|   | |||||||
| @@ -74,8 +74,10 @@ sparc/sun/solaris2.6        gcc 2.95.3   0.7.x-CVS  03-04-22 alex   Y Y Y Y | |||||||
| sparc/sun/solaris2.7        gcc 3.3      0.8.0      04-05-30 alex   Y Y Y Y | sparc/sun/solaris2.7        gcc 3.3      0.8.0      04-05-30 alex   Y Y Y Y | ||||||
| sparc/unkn./netbsdelf1.6.1  gcc 2.95.3   0.8.0      04-05-30 alex   Y Y Y Y | sparc/unkn./netbsdelf1.6.1  gcc 2.95.3   0.8.0      04-05-30 alex   Y Y Y Y | ||||||
| x86_64/apple/darwin12.3.0   gcc 4.2.1    20.2       13-04-01 alex   Y Y Y Y (3) | x86_64/apple/darwin12.3.0   gcc 4.2.1    20.2       13-04-01 alex   Y Y Y Y (3) | ||||||
|  | x86_64/apple/darwin13.0.0   A-clang 5.0  21~rc1     13-10-16 alex   Y Y Y Y (3) | ||||||
| x86_64/unknown/freebsd8.1   gcc 4.2.1    20~rc1     12-11-13 alex   Y Y Y Y (3) | x86_64/unknown/freebsd8.1   gcc 4.2.1    20~rc1     12-11-13 alex   Y Y Y Y (3) | ||||||
| x86_64/unkn./freebsd8.1-gnu gcc 4.4.5    19         12-02-26 alex   Y Y Y Y (3) | x86_64/unkn./freebsd8.1-gnu gcc 4.4.5    19         12-02-26 alex   Y Y Y Y (3) | ||||||
|  | x86_64/unknown/linux-gnu    clang 3.2    21~rc1     13-10-16 alex   Y Y Y Y (1) | ||||||
| x86_64/unknown/linux-gnu    gcc 4.4.5    20.2       13-04-01 alex   Y Y Y Y (1) | x86_64/unknown/linux-gnu    gcc 4.4.5    20.2       13-04-01 alex   Y Y Y Y (1) | ||||||
| x86_64/unknown/linux-gnu    Open64       20.3       13-10-16 goetz  Y Y Y Y (1) | x86_64/unknown/linux-gnu    Open64       20.3       13-10-16 goetz  Y Y Y Y (1) | ||||||
| x86_64/unknown/linux-gnu    tcc 0.9.25   20.3       13-10-16 goetz  Y Y Y Y (1) | x86_64/unknown/linux-gnu    tcc 0.9.25   20.3       13-10-16 goetz  Y Y Y Y (1) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton