Update Tilde to get basic "Hello World" working with runtime.print_string

This commit is contained in:
gingerBill
2023-07-24 11:30:07 +01:00
parent 360cb9eb9a
commit 4051dd9522
3 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -334,8 +334,8 @@ gb_internal void cg_procedure_end(cgProcedure *p) {
}
bool emit_asm = false;
if (string_starts_with(p->name, str_lit("bug@"))) {
emit_asm = true;
if (string_starts_with(p->name, str_lit("runtime@_os_write"))) {
// emit_asm = true;
}
TB_FunctionOutput *output = tb_module_compile_function(p->module->mod, p->func, TB_ISEL_FAST, emit_asm);
@@ -358,7 +358,7 @@ gb_internal void cg_procedure_generate(cgProcedure *p) {
cg_procedure_end(p);
if (
// string_starts_with(p->name, str_lit("bug@")) ||
string_starts_with(p->name, str_lit("runtime@_os_write")) ||
false
) { // IR Printing
TB_Arena *arena = tb_default_arena();