swiftlang / swift-sdk-generator

Generate Swift SDKs for cross-compilation
Apache License 2.0
182 stars 15 forks source link

WasmSDK: Copy swift-foundation headers and apinotes into the Swift SDK bundle #129

Closed kateinoigakukun closed 2 months ago

kateinoigakukun commented 2 months ago

Those files are recently added to the toolchain, and they are required to build Swift code that uses Foundation on WebAssembly.

We had been manually specifying the paths to copy from the target package into the SDK, but we now build host-agnostic SDKS. So we can just copy the whole usr/lib from the target Swift package into the SDK bundle instead of adding individual new paths. The host-specific build path is still used for 5.10 SDKs, so keep the old code as is for now, but it will be removed in the future.

kateinoigakukun commented 2 months ago

@swift-ci test

MaxDesiatov commented 2 months ago

@swift-ci test

MaxDesiatov commented 2 months ago

@swift-ci test macos

MaxDesiatov commented 2 months ago

@swift-ci test

kateinoigakukun commented 2 months ago

Verified in https://github.com/swiftwasm/swiftwasm-build/pull/418

MaxDesiatov commented 2 months ago

@swift-ci test