mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Use jemalloc (#987)
* use jemalloc * install system jemalloc in github action * check if jemalloc is actually used --------- Co-authored-by: neodiX <neodix42@ton.org>
This commit is contained in:
		
							parent
							
								
									d5c09936cf
								
							
						
					
					
						commit
						136b99b8d1
					
				
					 5 changed files with 9 additions and 7 deletions
				
			
		
							
								
								
									
										21
									
								
								CMake/Findjemalloc.cmake
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								CMake/Findjemalloc.cmake
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| # - Find JeMalloc library | ||||
| # Find the native JeMalloc includes and library | ||||
| # | ||||
| # JEMALLOC_INCLUDE_DIR - where to find jemalloc.h, etc. | ||||
| # JEMALLOC_LIBRARIES - List of libraries when using jemalloc. | ||||
| # JEMALLOC_FOUND - True if jemalloc found. | ||||
| 
 | ||||
| find_path(JEMALLOC_INCLUDE_DIR | ||||
|   NAMES jemalloc/jemalloc.h | ||||
|   HINTS ${JEMALLOC_ROOT_DIR}/include) | ||||
| 
 | ||||
| find_library(JEMALLOC_LIBRARIES | ||||
|   NAMES jemalloc | ||||
|   HINTS ${JEMALLOC_ROOT_DIR}/lib) | ||||
| 
 | ||||
| include(FindPackageHandleStandardArgs) | ||||
| find_package_handle_standard_args(jemalloc DEFAULT_MSG JEMALLOC_LIBRARIES JEMALLOC_INCLUDE_DIR) | ||||
| 
 | ||||
| mark_as_advanced( | ||||
|   JEMALLOC_LIBRARIES | ||||
|   JEMALLOC_INCLUDE_DIR) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue