Platform
nitc :: Toolchain :: _compiler
Compiler of the target programnitc :: Toolchain :: compiler=
Compiler of the target programnitc :: Toolchain :: defaultinit
nitc :: Toolchain :: root_compile_dir
Directory where to generate all filesnitc :: Toolchain :: _compiler
Compiler of the target programcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: Toolchain :: compiler=
Compiler of the target programcore :: Object :: defaultinit
nitc :: Toolchain :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: Toolchain :: root_compile_dir
Directory where to generate all files
# Build toolchain for a specific target program, varies per `Platform`
class Toolchain
# Toolcontext
var toolcontext: ToolContext
# Compiler of the target program
var compiler: AbstractCompiler
# Directory where to generate all files
#
# The option `--compile_dir` change this directory.
fun root_compile_dir: String
do
var compile_dir = toolcontext.opt_compile_dir.value
if compile_dir == null then compile_dir = "nit_compile"
return compile_dir
end
# Directory where to generate all C files
#
# By default it is `root_compile_dir` but some platform may require that it is a subdirectory.
fun compile_dir: String do return root_compile_dir
# Write all C files and compile them
fun write_and_make is abstract
end
src/compiler/abstract_compiler.nit:139,1--165,3