sdk: update darwin-tools and OAM (#270)
- Commit
916cdffba86c7661e450a98eb76bfad5f824a4d6- Author
- Kabir Oberai <[email protected]>
- When
- 2026-09-21 05:37 UTC (2 months ago)
- Parents
eacc35d
## What does this PR do? Bumps darwin-tools and OpenAppleMacros - Updates LLD to support arm64e.x1 to fix #269 - Adds FoundationModelsMacros to fix #213 ## How was it tested? - [x] Confirm that we can build with an Xcode 27 release SDK on Linux - [x] Confirm that FoundationModels APIs work ## AI tool usage How much of this PR was AI-assisted? (check one) - [x] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved Darwin SDK tool discovery during Swift builds, including support for locating `dsymutil`. * **Updates** * Updated bundled Darwin tool dependencies. * Added Foundation Models macros support to the OpenAppleMacros library set. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Diff
Sources/PackLib/BuildSettings.swift
diff --git a/Sources/PackLib/BuildSettings.swift b/Sources/PackLib/BuildSettings.swiftindex 8d1a4a5..fbab09a 100644--- a/Sources/PackLib/BuildSettings.swift+++ b/Sources/PackLib/BuildSettings.swift@@ -65,6 +65,8 @@ public struct BuildSettings: Sendable { ] self.sdkEnvironment.merge([ "XCODE_EXTRA_PLATFORM_FOLDERS": "\(darwinSDK.bundle.path)/Developer/Platforms",+ // SWB looks for dsymutil in the PATH. Other stuff (lld, libtool) is handled by toolset-swb.json.+ "PATH": "\(darwinSDK.bundle.path)/toolset/bin:\(ProcessInfo.processInfo.environment["PATH"] ?? "")", ]) { $1 } #endif }
Sources/XToolSupport/SDKBuilder.swift
diff --git a/Sources/XToolSupport/SDKBuilder.swift b/Sources/XToolSupport/SDKBuilder.swiftindex 15b0588..1826fc1 100644--- a/Sources/XToolSupport/SDKBuilder.swift+++ b/Sources/XToolSupport/SDKBuilder.swift@@ -79,11 +79,12 @@ struct SDKBuilder { static let sdkEpoch = 2 // tag from https://github.com/xtool-org/darwin-tools-linux-llvm- static let darwinToolsVersion = "1.0.1"+ static let darwinToolsVersion = "1.1.0" // tag from https://github.com/xtool-org/OpenAppleMacros- static let oamVersion = "1.2.0"+ static let oamVersion = "1.3.0" static let oamLibraries: [String] = [+ "FoundationModelsMacros", "PreviewsMacros", "SwiftUIMacros", ]