We do not always want both address and undefined behavior sanitizers running at the same time. For the gitlab custom-runners, drop to only --enable-ubsan. These jobs are not run by default, but as will be obvious in the next patch, we don't run ASan on x86 either, and it seems wrong to hold aarch64 and s390x to a different standard. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20240813095216.306555-2-richard.henderson@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			612 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			612 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash -e
 | |
| #
 | |
| # Compile and check with clang & debug & sanitizers
 | |
| #
 | |
| # Copyright (c) 2016-2018 Red Hat Inc.
 | |
| #
 | |
| # Authors:
 | |
| #  Fam Zheng <famz@redhat.com>
 | |
| #  Marc-André Lureau <marcandre.lureau@redhat.com>
 | |
| #
 | |
| # This work is licensed under the terms of the GNU GPL, version 2
 | |
| # or (at your option) any later version. See the COPYING file in
 | |
| # the top-level directory.
 | |
| 
 | |
| . common.rc
 | |
| 
 | |
| requires_binary clang
 | |
| 
 | |
| cd "$BUILD_DIR"
 | |
| 
 | |
| OPTS="--cxx=clang++ --cc=clang --host-cc=clang"
 | |
| OPTS="--enable-debug --enable-asan --enable-ubsan $OPTS"
 | |
| 
 | |
| export ASAN_OPTIONS=detect_leaks=0
 | |
| build_qemu $OPTS
 | |
| check_qemu check V=1
 | |
| install_qemu
 |