Skip to content

Commit 01aed67

Browse files
Remove model flags for x86_64 darwin causing GOT relocation issues
1 parent d1e4363 commit 01aed67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/jit/_targets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def get_target(host: str) -> _COFF32 | _COFF64 | _ELF | _MachO:
565565
elif re.fullmatch(r"aarch64-pc-windows-msvc", host):
566566
host = "aarch64-pc-windows-msvc"
567567
condition = "defined(_M_ARM64)"
568-
args = ["-fms-runtime-lib=dll", "-fplt"]
568+
args = ["-fms-runtime-lib=dll"]
569569
optimizer = _optimizers.OptimizerAArch64
570570
target = _COFF64(host, condition, args=args, optimizer=optimizer)
571571
elif re.fullmatch(r"aarch64-.*-linux-gnu", host):
@@ -585,7 +585,7 @@ 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 = ["-fno-pic", "-mcmodel=medium", "-mlarge-data-threshold=0", "-fno-plt"]
588+
args = ["-fno-plt"]
589589
optimizer = _optimizers.OptimizerX86
590590
target = _MachO(host, condition, optimizer=optimizer)
591591
elif re.fullmatch(r"x86_64-pc-windows-msvc", host):

0 commit comments

Comments
 (0)