mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	all.sh: fix cleanup happening during an out-of-tree build
This commit is contained in:
		
							parent
							
								
									31b07e2833
								
							
						
					
					
						commit
						a71d64c74f
					
				@ -147,6 +147,10 @@ EOF
 | 
			
		||||
# remove built files as well as the cmake cache/config
 | 
			
		||||
cleanup()
 | 
			
		||||
{
 | 
			
		||||
    if [ -n "${MBEDTLS_ROOT_DIR+set}" ]; then
 | 
			
		||||
        cd "$MBEDTLS_ROOT_DIR"
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    command make clean
 | 
			
		||||
 | 
			
		||||
    # Remove CMake artefacts
 | 
			
		||||
@ -857,6 +861,7 @@ msg "test: cmake 'out-of-source' build"
 | 
			
		||||
make test
 | 
			
		||||
cd "$MBEDTLS_ROOT_DIR"
 | 
			
		||||
rm -rf "$OUT_OF_SOURCE_DIR"
 | 
			
		||||
unset MBEDTLS_ROOT_DIR
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user