Property definitions

nitc $ Toolchain :: defaultinit
# 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