Skip to content

Commit

Permalink
fix hard code
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jan 8, 2025
1 parent 5e11509 commit c6581f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion self_hosted/target.jou
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,15 @@ def init_target() -> None:
assert error == NULL
assert target.target != NULL

if running_on_arm64_mac():
arch = "arm64"
else:
arch = "x86-64"

target.target_machine = LLVMCreateTargetMachine(
target.target,
target.triple,
"x86-64",
arch,
"",
LLVMCodeGenOptLevel::Default,
LLVMRelocMode::PIC,
Expand Down

0 comments on commit c6581f1

Please sign in to comment.