build: avoid stdin stall with GNU AS probing.
a758c5eadded probing for various tools, such as AS. Unfortunately, GNU AS is reading stdin with -v, and thus configure is stalled with configure arguments such as --as=as. Fixes Ticket #1898. (cherry picked from commitdbb41f93c1)
This commit is contained in:
		
				
					committed by
					
						
						Carl Eugen Hoyos
					
				
			
			
				
	
			
			
			
						parent
						
							4c17e20ff0
						
					
				
				
					commit
					7f174cec8b
				
			
							
								
								
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								configure
									
									
									
									
										vendored
									
									
								
							@@ -2560,7 +2560,9 @@ probe_cc(){
 | 
			
		||||
    unset _depflags _DEPCMD _DEPFLAGS
 | 
			
		||||
    _flags_filter=echo
 | 
			
		||||
 | 
			
		||||
    if $_cc -v 2>&1 | grep -q '^gcc.*LLVM'; then
 | 
			
		||||
    if $_cc --version 2>&1 | grep -q '^GNU assembler'; then
 | 
			
		||||
        true # no-op to avoid reading stdin in following checks
 | 
			
		||||
    elif $_cc -v 2>&1 | grep -q '^gcc.*LLVM'; then
 | 
			
		||||
        _type=llvm_gcc
 | 
			
		||||
        gcc_extra_ver=$(expr "$($_cc --version | head -n1)" : '.*\((.*)\)')
 | 
			
		||||
        _ident="llvm-gcc $($_cc -dumpversion) $gcc_extra_ver"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user