aboutsummaryrefslogtreecommitdiff
path: root/src/tilde_proc.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-07-24 11:30:07 +0100
committergingerBill <bill@gingerbill.org>2023-07-24 11:30:07 +0100
commit4051dd95223f9662c78c05d09e01b925d2d99ac0 (patch)
tree30b3cc20a7913c1032485d9d02f1125013881b16 /src/tilde_proc.cpp
parent360cb9eb9ab0162587d390102780d00f8d0c9139 (diff)
Update Tilde to get basic "Hello World" working with `runtime.print_string`
Diffstat (limited to 'src/tilde_proc.cpp')
-rw-r--r--src/tilde_proc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp
index e75c621ee..8143c9a6e 100644
--- a/src/tilde_proc.cpp
+++ b/src/tilde_proc.cpp
@@ -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();