diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-11 12:49:08 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-11 12:49:08 +0100 |
| commit | a8ec2c06f3f0424e03ab3105b8a3f77907bf6343 (patch) | |
| tree | 2c82dc74180aabc66580494447eb4e742719f726 /src | |
| parent | 5a6cffb65f6698714c1288baae4748826a0c6e98 (diff) | |
Add define flag for codegen
It's currently disabled until things even work
Diffstat (limited to 'src')
| -rw-r--r-- | src/tilde_proc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tilde_proc.cpp b/src/tilde_proc.cpp index 3c62faf83..542ed794e 100644 --- a/src/tilde_proc.cpp +++ b/src/tilde_proc.cpp @@ -1,3 +1,7 @@ +#ifndef TILDE_DO_CODEGEN +#define TILDE_DO_CODEGEN 0 +#endif + gb_internal TB_FunctionPrototype *cg_procedure_type_as_prototype(cgModule *m, Type *type) { GB_ASSERT(is_type_proc(type)); mutex_lock(&m->proc_proto_mutex); @@ -383,7 +387,7 @@ gb_internal WORKER_TASK_PROC(cg_procedure_compile_worker_proc) { // feature_set.x64 |= TB_FEATURE_X64_LZCNT; } -#if 0 +#if TILDE_DO_CODEGEN bool emit_asm = false; TB_FunctionOutput *output = tb_codegen(p->func, cg_worklist(), cg_arena(), &feature_set, emit_asm); gb_unused(output); |