mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	ML API refactoring (z3native.c -> z3native_stubs.c)
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
		
							parent
							
								
									555a3883b9
								
							
						
					
					
						commit
						4687aa208d
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1392,9 +1392,9 @@ class MLComponent(Component):
 | 
			
		|||
                out.write('%s.cmi: %s.mli\n' % (os.path.join(sub_dir,m),os.path.join(sub_dir,m)))
 | 
			
		||||
                out.write('\t%s -I %s -c %s.mli\n' % (OCAMLC,sub_dir,os.path.join(sub_dir,m)))
 | 
			
		||||
                cmis = cmis + ' ' + os.path.join(sub_dir,m) + '.cmi'
 | 
			
		||||
            out.write('api/ml/libz3ml$(LIB_EXT): api/ml/z3native.c %s$(SO_EXT)\n' % get_component(Z3_DLL_COMPONENT).dll_name)
 | 
			
		||||
            out.write('\t$(CXX) $(CXXFLAGS) -I %s -I %s %s/z3native.c $(CXX_OUT_FLAG)api/ml/z3native$(OBJ_EXT)\n' % (OCAML_LIB, api_src, sub_dir))
 | 
			
		||||
            out.write('\t$(AR) $(AR_FLAGS) $(AR_OUTFLAG)api/ml/libz3ml$(LIB_EXT) api/ml/z3native$(OBJ_EXT)\n')
 | 
			
		||||
            out.write('api/ml/libz3ml$(LIB_EXT): api/ml/z3native_stubs.c %s$(SO_EXT)\n' % get_component(Z3_DLL_COMPONENT).dll_name)
 | 
			
		||||
            out.write('\t$(CXX) $(CXXFLAGS) -I %s -I %s %s/z3native_stubs.c $(CXX_OUT_FLAG)api/ml/z3native_stubs$(OBJ_EXT)\n' % (OCAML_LIB, api_src, sub_dir))
 | 
			
		||||
            out.write('\t$(AR) $(AR_FLAGS) $(AR_OUTFLAG)api/ml/libz3ml$(LIB_EXT) api/ml/z3native_stubs$(OBJ_EXT)\n')
 | 
			
		||||
            out.write('%s: api/ml/libz3ml$(LIB_EXT) %s$(SO_EXT) %s' % (os.path.join(sub_dir, 'z3.cmxa'), get_component(Z3_DLL_COMPONENT).dll_name, cmis))
 | 
			
		||||
            for mlfile in get_ml_files(self.src_dir):
 | 
			
		||||
                out.write(' %s' % os.path.join(sub_dir, mlfile))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1148,7 +1148,7 @@ def mk_ml():
 | 
			
		|||
    ml_dir      = get_component('ml').src_dir
 | 
			
		||||
    ml_nativef  = os.path.join(ml_dir, 'z3native.ml')
 | 
			
		||||
    ml_nativefi = os.path.join(ml_dir, 'z3native.mli')
 | 
			
		||||
    ml_wrapperf = os.path.join(ml_dir, 'z3native.c')
 | 
			
		||||
    ml_wrapperf = os.path.join(ml_dir, 'z3native_stubs.c')
 | 
			
		||||
    ml_native   = open(ml_nativef, 'w')
 | 
			
		||||
    ml_i        = open(ml_nativefi, 'w')
 | 
			
		||||
    ml_native.write('(* Automatically generated file *)\n\n')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue