mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	build : enable libstdc++ assertions for debug builds
This commit is contained in:
		| @@ -116,6 +116,11 @@ set(THREADS_PREFER_PTHREAD_FLAG ON) | ||||
| find_package(Threads REQUIRED) | ||||
| include(CheckCXXCompilerFlag) | ||||
|  | ||||
| # enable libstdc++ assertions for debug builds | ||||
| if (CMAKE_SYSTEM_NAME MATCHES "Linux") | ||||
|     add_compile_definitions($<$<CONFIG:Debug>:_GLIBCXX_ASSERTIONS>) | ||||
| endif() | ||||
|  | ||||
| if (NOT MSVC) | ||||
|     if (LLAMA_SANITIZE_THREAD) | ||||
|         add_compile_options(-fsanitize=thread) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jared Van Bortel
					Jared Van Bortel