build: fix run_command warning
The default behavior of check: false is going to change to true in the future, see <https://github.com/mesonbuild/meson/issues/9300>. Thus we are explicit about the desired behavior. The error in uname is important but with test we check ourselves using returncode(). This fixes #556.
This commit is contained in:
		
				
					committed by
					
						 William Hubbs
						William Hubbs
					
				
			
			
				
	
			
			
			
						parent
						
							02b064a591
						
					
				
				
					commit
					35077afb68
				
			| @@ -36,7 +36,7 @@ endif | ||||
| option_os = get_option('os') | ||||
| if option_os == '' | ||||
|   uname = find_program('uname') | ||||
|   r = run_command(uname, '-s') | ||||
|   r = run_command(uname, '-s', check: true) | ||||
|   os = r.stdout().strip() | ||||
|   os = '-'.join(os.split('/')) | ||||
| else | ||||
| @@ -84,7 +84,7 @@ else | ||||
| endif | ||||
|  | ||||
| if get_option('split-usr') == 'auto' | ||||
|   split_usr = run_command('test', '-L', '/bin').returncode() != 0 | ||||
|   split_usr = run_command('test', '-L', '/bin', check: false).returncode() != 0 | ||||
| else | ||||
|   split_usr = get_option('split-usr') == 'true' | ||||
| endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user