mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-03 22:21:59 +00:00 
			
		
		
		
	utils
This commit is contained in:
		@@ -4,9 +4,10 @@ project(Darkflame
 | 
			
		||||
	LANGUAGES C CXX
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
#add_compile_options("-fsanitize=address,undefined")
 | 
			
		||||
# TEMP - Sanitizer flags
 | 
			
		||||
# add_compile_options("-fsanitize=address,undefined" "-fvisibility=default")
 | 
			
		||||
add_compile_options("-fsanitize=undefined" "-fvisibility=default")
 | 
			
		||||
add_link_options("-fsanitize=undefined" "-static-libsan")
 | 
			
		||||
add_link_options("-fsanitize=undefined" "-static-libasan")
 | 
			
		||||
 | 
			
		||||
# check if the path to the source directory contains a space
 | 
			
		||||
if("${CMAKE_SOURCE_DIR}" MATCHES " ")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								valgrind.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								valgrind.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt build/gnu-debug/MasterServer
 | 
			
		||||
		Reference in New Issue
	
	Block a user