Merge pull request #430 from nakst/master

New Essence OS layer; cross-compiling improvements
This commit is contained in:
gingerBill
2019-09-09 14:39:35 +01:00
committed by GitHub
6 changed files with 1414 additions and 244 deletions

View File

@@ -10964,12 +10964,14 @@ void ir_gen_tree(irGen *s) {
// main :: proc(argc: i32, argv: ^^u8) -> i32
String name = str_lit("main");
#if 0
if (str_eq_ignore_case(cross_compile_target, str_lit("Essence"))) {
// This is a bit hacky,
// because this makes this function the first function run in the executable
// so it won't actually have the argc/argv arguments.
name = str_lit("ProgramEntry");
}
#endif
Type *proc_params = alloc_type_tuple();
Type *proc_results = alloc_type_tuple();