Skip to content

Commit

Permalink
flush dat toilet
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jan 8, 2025
1 parent be2963f commit 5e11509
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions self_hosted/target.jou
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e11509

Please sign in to comment.