#NEWLINE# @ feature ( 'ocaml' ) #NEWLINE# @ after_method ( 'process_source' ) #NEWLINE# def apply_link_ml( self ) : #NEWLINE# #INDENT# if self . bytecode_env : #NEWLINE# #INDENT# ext = ( ( self . islibrary and '.cma' ) or '.run' ) #NEWLINE# linktask = self . create_task ( 'ocalink' ) #NEWLINE# linktask . bytecode = 1 #NEWLINE# linktask . set_outputs ( self . path . find_or_declare ( ( self . target + ext ) ) ) #NEWLINE# linktask . env = self . bytecode_env #NEWLINE# self . linktasks . append ( linktask ) #NEWLINE# #UNINDENT# if self . native_env : #NEWLINE# #INDENT# if ( self . type == 'c_object' ) : #NEWLINE# #INDENT# ext = '.o' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . islibrary : #NEWLINE# #INDENT# ext = '.cmxa' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ext = '' #NEWLINE# #UNINDENT# #UNINDENT# linktask = self . create_task ( 'ocalinkx' ) #NEWLINE# linktask . set_outputs ( self . path . find_or_declare ( ( self . target + ext ) ) ) #NEWLINE# linktask . env = self . native_env #NEWLINE# self . linktasks . append ( linktask ) #NEWLINE# self . compiled_tasks . append ( linktask )