Skip to content

Commit b9bfacf

Browse files
mcmodel=large
1 parent 1adf827 commit b9bfacf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tools/jit/_targets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,9 @@ def get_target(host: str) -> _COFF32 | _COFF64 | _ELF | _MachO:
585585
elif re.fullmatch(r"x86_64-apple-darwin.*", host):
586586
host = "x86_64-apple-darwin"
587587
condition = "defined(__x86_64__) && defined(__APPLE__)"
588+
args = ["-mcmodel=large"]
588589
optimizer = _optimizers.OptimizerX86
589-
target = _MachO(host, condition, optimizer=optimizer)
590+
target = _MachO(host, condition, args=args, optimizer=optimizer)
590591
elif re.fullmatch(r"x86_64-pc-windows-msvc", host):
591592
host = "x86_64-pc-windows-msvc"
592593
condition = "defined(_M_X64)"

0 commit comments

Comments
 (0)