mirror of
				https://github.com/yuzu-emu/mbedtls.git
				synced 2025-11-04 03:25:04 +00:00 
			
		
		
		
	Add detection for zlib headers to all.sh
Signed-off-by: Simon Butcher <simon.butcher@arm.com>
This commit is contained in:
		
							parent
							
								
									ae48d86cb1
								
							
						
					
					
						commit
						f0658b18dc
					
				| 
						 | 
					@ -662,6 +662,17 @@ component_test_zlib_make() {
 | 
				
			||||||
    msg "test: ssl-opt.sh (zlib, make)"
 | 
					    msg "test: ssl-opt.sh (zlib, make)"
 | 
				
			||||||
    if_build_succeeded tests/ssl-opt.sh
 | 
					    if_build_succeeded tests/ssl-opt.sh
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					support_test_zlib_make () {
 | 
				
			||||||
 | 
					    base=support_test_zlib_$$
 | 
				
			||||||
 | 
					    cat <<'EOF' > ${base}.c
 | 
				
			||||||
 | 
					#include "zlib.h"
 | 
				
			||||||
 | 
					int main(void) { return 0; }
 | 
				
			||||||
 | 
					EOF
 | 
				
			||||||
 | 
					    gcc -o ${base}.exe ${base}.c -lz 2>/dev/null
 | 
				
			||||||
 | 
					    ret=$?
 | 
				
			||||||
 | 
					    rm -f ${base}.*
 | 
				
			||||||
 | 
					    return $ret
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
component_test_zlib_cmake() {
 | 
					component_test_zlib_cmake() {
 | 
				
			||||||
    msg "build: zlib enabled, cmake"
 | 
					    msg "build: zlib enabled, cmake"
 | 
				
			||||||
| 
						 | 
					@ -675,6 +686,9 @@ component_test_zlib_cmake() {
 | 
				
			||||||
    msg "test: ssl-opt.sh (zlib, cmake)"
 | 
					    msg "test: ssl-opt.sh (zlib, cmake)"
 | 
				
			||||||
    if_build_succeeded tests/ssl-opt.sh
 | 
					    if_build_succeeded tests/ssl-opt.sh
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					support_test_zlib_cmake () {
 | 
				
			||||||
 | 
					    support_test_zlib_make "$@"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
component_test_ref_configs () {
 | 
					component_test_ref_configs () {
 | 
				
			||||||
    msg "test/build: ref-configs (ASan build)" # ~ 6 min 20s
 | 
					    msg "test/build: ref-configs (ASan build)" # ~ 6 min 20s
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue