# Combine options and platform informations to get the final path of the outfile
fun outfile(mainmodule: MModule): String
do
var res = self.toolcontext.opt_output.value
if res != null then return res
res = default_outname
var dir = self.toolcontext.opt_dir.value
if dir != null then return dir.join_path(res)
return res
end
src/compiler/abstract_compiler.nit:344,2--353,4