macos: detect clang also when called as gcc
This commit is contained in:
		
							parent
							
								
									032664bf7f
								
							
						
					
					
						commit
						6178e47345
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								configure
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								configure
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -375,7 +375,7 @@ if ! echo "$cc" | grep -q "tcc"; then
 | 
			
		|||
  OPT1="-Wdeclaration-after-statement -fno-strict-aliasing"
 | 
			
		||||
  # we want -Wno- but gcc does not always reject unknown -Wno- options
 | 
			
		||||
  OPT2="-Wpointer-sign -Wsign-compare -Wunused-result -Wformat-truncation"
 | 
			
		||||
  if echo "$cc" | grep -q "clang"; then
 | 
			
		||||
  if $cc --version 2>&1 | grep -q "clang"; then
 | 
			
		||||
    OPT1="$OPT1 -fheinous-gnu-extensions"
 | 
			
		||||
    OPT2="$OPT2 -Wstring-plus-int"
 | 
			
		||||
  fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue