diff --git a/self_hosted/target.jou b/self_hosted/target.jou index 83b9921e..491fe16a 100644 --- a/self_hosted/target.jou +++ b/self_hosted/target.jou @@ -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,