mirror of
				https://github.com/MarioSpore/Grinch-AP.git
				synced 2025-10-21 20:21:32 -06:00 
			
		
		
		
	 3fb0b57d19
			
		
	
	3fb0b57d19
	
	
	
		
			
			* Speedups: add instructions for ASAN * Speedups: move typevars out of classes * Speedups, NetUtils: raise correct exceptions * Speedups: double-check malloc * Tests: more LocationStore tests
		
			
				
	
	
		
			19 lines
		
	
	
		
			742 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			742 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # This file is used when doing pyximport
 | |
| import os
 | |
| 
 | |
| def make_ext(modname, pyxfilename):
 | |
|     from distutils.extension import Extension
 | |
|     return Extension(
 | |
|         name=modname,
 | |
|         sources=[pyxfilename],
 | |
|         depends=["intset.h"],
 | |
|         include_dirs=[os.getcwd()],
 | |
|         language="c",
 | |
|         # to enable ASAN and debug build:
 | |
|         # extra_compile_args=["-fsanitize=address", "-UNDEBUG", "-Og", "-g"],
 | |
|         # extra_objects=["-fsanitize=address"],
 | |
|         # NOTE: we can not put -lasan at the front of link args, so needs to be run with
 | |
|         #       LD_PRELOAD=/usr/lib/libasan.so ASAN_OPTIONS=detect_leaks=0 path/to/exe
 | |
|         # NOTE: this can't find everything unless libpython and cymem are also built with ASAN
 | |
|     )
 |