lib: intro the method String::file_copy_to

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: keep a list of source files to copy to the compile_dir

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: actually copy over files to compile_dir

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: move adding gc_chooser out of the makefile generation

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: copy over gc_choser files

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: use only local files in compilation

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: divide C compilation into 3 methods in abstract compiler

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Merge branch 'privat' into 'cleanup-c-make-and-copy'

For FFI and use of compile_dir.
typing: fix failed cast when iterate over a nullable collection

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
typing: standardize error messages for AForExpr loops

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
tests: fix error messages for engine nitg-s

This follows the iterator error messages from a9986ea596189a1b3743ae0c897f2bdbb8d5e6f0

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
tests: fix test errors for engine nitc

(actually not fixing anything but putting tests away waiting for kill-nitc)

This follows the iterator error messages from a9986ea596189a1b3743ae0c897f2bdbb8d5e6f0

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
correct typo from `reciever` to `receiver` in error messages

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
nitmetrics: correct typo from `reciever` to `receiver`

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Merge remote-tracking branch 'alexandre/fix-iterators'

Conflicts:
	src/icode/icode_builder.nit
	src/naive_interpreter.nit
	tests/sav/base_attr_gen.res
	tests/sav/error_needed_method_alt2.res
	tests/sav/nitc/fixme/base_attr_gen_alt1.res
	tests/sav/nitc/nitmetrics_args1.res
nitg: minor optimization and cleanup

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: fix errors related to mainmodule (.mk file and generated binary)

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: Added signal information when producing a stack trace.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Merge remote-tracking branch 'alexis/cleanup-c-make-and-copy'

This is in preparation for the support of different platforms,
especially Android.

Copy all .[ch] files used by the legacy native interface and the
gc_chooser.[ch] files to the compilation dir. Allows for local
compilation, generated code portability and compatibility with difficult
compilation tool chains. Only the output executable may link outside of
the compilation dir.

Also cleans up the method in charge of compiling the C code and
Makefile. It is now separated in three methods with a clearer use of
variables and better readability. This will allow to customize the
behavior of the final compilation according to the platform.
Merge remote-tracking branch 'lucas/unwind_integration'

prints the type of the signal it has caught before exiting with a stack
trace.