Skip to content

Commit

Permalink
debug printies
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jan 8, 2025
1 parent f17e2a9 commit be2963f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions self_hosted/target.jou
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def init_target() -> None:
# LLVM's default is x86_64-pc-windows-msvc
target.triple = "x86_64-pc-windows-gnu"
else:
system("uname -m")
printf("system(...) returns %d\n", system("test `uname -m` = arm64"))
triple = LLVMGetDefaultTargetTriple()
printf("triple=\"%s\"\n", triple)
assert strlen(triple) < sizeof target.triple
strcpy(target.triple, triple)
LLVMDisposeMessage(triple)
Expand Down

0 comments on commit be2963f

Please sign in to comment.