Skip to content

Commit 38050cd

Browse files
authored
Merge pull request #66641 from apple/maxd/bsd-arm64
swift_build_support: support FreeBSD on arm64 in `targets.py`
2 parents 35bd509 + 2dc5da0 commit 38050cd

File tree

1 file changed

+3
-1
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+3
-1
lines changed

utils/swift_build_support/swift_build_support/targets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class StdlibDeploymentTarget(object):
277277
"powerpc64le",
278278
"s390x"])
279279

280-
FreeBSD = Platform("freebsd", archs=["x86_64"])
280+
FreeBSD = Platform("freebsd", archs=["x86_64", "arm64"])
281281

282282
OpenBSD = OpenBSDPlatform("openbsd", archs=["amd64"])
283283

@@ -375,6 +375,8 @@ def host_target():
375375
elif system == 'FreeBSD':
376376
if machine == 'amd64':
377377
return StdlibDeploymentTarget.FreeBSD.x86_64
378+
elif machine == 'arm64':
379+
return StdlibDeploymentTarget.FreeBSD.arm64
378380

379381
elif system == 'OpenBSD':
380382
if machine == 'amd64':

0 commit comments

Comments
 (0)