From 5e1150996f72deca61644d4b0ff432c7d63014bf Mon Sep 17 00:00:00 2001 From: Akuli Date: Wed, 8 Jan 2025 23:02:00 +0200 Subject: [PATCH] flush dat toilet --- self_hosted/target.jou | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/self_hosted/target.jou b/self_hosted/target.jou index 410a7984..83b9921e 100644 --- a/self_hosted/target.jou +++ b/self_hosted/target.jou @@ -55,9 +55,17 @@ def init_target() -> None: target.triple = "x86_64-pc-windows-gnu" else: system("uname -m") + fflush(stdout) + fflush(stderr) printf("system(...) returns %d\n", system("test `uname -m` = arm64")) + fflush(stdout) + fflush(stderr) triple = LLVMGetDefaultTargetTriple() + fflush(stdout) + fflush(stderr) printf("triple=\"%s\"\n", triple) + fflush(stdout) + fflush(stderr) assert strlen(triple) < sizeof target.triple strcpy(target.triple, triple) LLVMDisposeMessage(triple)