| 
						
						
						
					 | 
					 | 
					@ -1,5 +1,3 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import Cython | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import distutils | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import os | 
					 | 
					 | 
					 | 
					import os | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import shutil | 
					 | 
					 | 
					 | 
					import shutil | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import subprocess | 
					 | 
					 | 
					 | 
					import subprocess | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -19,10 +17,6 @@ AddOption('--asan', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          action='store_true', | 
					 | 
					 | 
					 | 
					          action='store_true', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          help='turn on ASAN') | 
					 | 
					 | 
					 | 
					          help='turn on ASAN') | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# Rebuild cython extensions if python, distutils, or cython change | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					cython_dependencies = [Value(v) for v in (sys.version, distutils.__version__, Cython.__version__)] | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					Export('cython_dependencies') | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					real_arch = arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip() | 
					 | 
					 | 
					 | 
					real_arch = arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					if platform.system() == "Darwin": | 
					 | 
					 | 
					 | 
					if platform.system() == "Darwin": | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  arch = "Darwin" | 
					 | 
					 | 
					 | 
					  arch = "Darwin" | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -188,9 +182,10 @@ env = Environment( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  CXXFLAGS=["-std=c++1z"] + cxxflags, | 
					 | 
					 | 
					 | 
					  CXXFLAGS=["-std=c++1z"] + cxxflags, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  LIBPATH=libpath + [ | 
					 | 
					 | 
					 | 
					  LIBPATH=libpath + [ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "#cereal", | 
					 | 
					 | 
					 | 
					    "#cereal", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    "#phonelibs", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    "#opendbc/can", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "#selfdrive/boardd", | 
					 | 
					 | 
					 | 
					    "#selfdrive/boardd", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "#selfdrive/common", | 
					 | 
					 | 
					 | 
					    "#selfdrive/common", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    "#phonelibs", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  ], | 
					 | 
					 | 
					 | 
					  ], | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  CYTHONCFILESUFFIX=".cpp", | 
					 | 
					 | 
					 | 
					  CYTHONCFILESUFFIX=".cpp", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  tools=["default", "cython"] | 
					 | 
					 | 
					 | 
					  tools=["default", "cython"] | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |