Skip to content

Set CMP0157 to OLD only for Windows hosts #5195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Steelskin
Copy link
Contributor

  • Explanation:
    There is no early swift-driver build for the Windows toolchain. As a result, swift-collections fails to build properly when CMP0157 is set to NEW due to object files not being generated.

    This sets CMP0157 to OLD when targetting Android until the early swift-driver is available on Windows.

  • Scope:
    The changes are limited to the Android build on Windows.

  • Issues:
    CMP0157 is breaking the Windows nightlies swift-foundation#1222

  • Original PRs:
    Set CMP0157 to OLD for Android #5180

  • Risk:
    Very low.

  • Testing:
    Fixes the Swift CI 6.1 build.

  • Reviewers:
    @finagolfin

  - **Explanation**:
    There is no early swift-driver build for the Windows toolchain. As
    a result, swift-collections fails to build properly when CMP0157
    is set to NEW due to object files not being generated.

    This sets CMP0157 to OLD when targetting Android until the early
    swift-driver is available on Windows.
  - **Scope**:
    The changes are limited to the Android build on Windows.
  - **Issues**:
    - swiftlang/swift-foundation#1222
  - **Original PRs**:
    swiftlang#5180
  - **Risk**:
    Very low.
  - **Testing**:
    Fixes the Swift CI 6.1 build.
  - **Reviewers**:
    @finagolfin
@compnerd
Copy link
Member

@swift-ci please test

@compnerd compnerd requested review from parkera and jmschonfeld March 24, 2025 22:59
@parkera parkera merged commit 056b77b into swiftlang:release/6.1 Mar 25, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants