Skip to content

Conversation

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Aug 16, 2023

Cherry-pick of #6819.

When setting host triple in Swift SDKs to arm64-apple-macosx13.0 to allow cross-compiling from an older version of macOS, this triple is not recognized as directly matching arm64-apple-macosx14.0 on a newer version of macOS.

We should support backward compatibility with Swift SDKs that were built for older version of macOS.

(cherry picked from commit 82b1e83)

# Conflicts:
#	Sources/PackageModel/SwiftSDKBundle.swift
#	Tests/PackageModelTests/SwiftSDKBundleTests.swift

Resolves rdar://113967401.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov self-assigned this Aug 16, 2023
@MaxDesiatov MaxDesiatov changed the title Fix backward compatibility in host triple checks [5.9] Fix backward compatibility in host triple checks Aug 24, 2023
It's useful to be able to set host triple in Swift SDKs to `arm64-apple-macosx13.0` to allow cross-compiling from an older version of macOS. This triple is not recognized as directly matching `arm64-apple-macosx14.0` on a newer version of macOS.

We should support backward compatibility with Swift SDKs that were built for older version of macOS.

(cherry picked from commit 82b1e83)

# Conflicts:
#	Sources/PackageModel/SwiftSDKBundle.swift
#	Tests/PackageModelTests/SwiftSDKBundleTests.swift
@MaxDesiatov MaxDesiatov force-pushed the maxd/5.9-host-triple-check branch from 168769b to 79be31a Compare August 24, 2023 16:27
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

1 similar comment
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit 935c47c into release/5.9 Aug 25, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/5.9-host-triple-check branch August 25, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug cross-compilation swift 5.9 This PR targets the 5.9 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants