Skip to content

Conditionalize use of .withoutEscapingSlashes #2993

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

Merged

Conversation

neonichu
Copy link
Contributor

This was only cherry-picked into 5.3 recently: swiftlang/swift-corelibs-foundation#2889, so to get SwiftPM to build with the 5.3 released toolchain on non-Darwin platforms, we have to conditionalize it.

This was only cherry-picked into 5.3 recently:
swiftlang/swift-corelibs-foundation#2889, so to get
SwiftPM to build with the 5.3 released toolchain on non-Darwin
platforms, we have to conditionalize it.
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

encoder.outputFormatting = [.sortedKeys, .withoutEscapingSlashes]
#else // `.withoutEscapingSlashes` is not in 5.3 on non-Darwin platforms
Copy link
Member

@federicobucchi federicobucchi Oct 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please move the comment // .withoutEscapingSlashes is not in 5.3 on non-Darwin platforms at the #if os(macOS) like for /PIFBuilder.swift ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't seem to be a way to conditionalize on the patch component of the version, which means that this would still fail on older toolchains. Or should this PR not be taken once the Foundation fix is in the latest 5.3 toolchains?

@abertelrud abertelrud merged commit 33227e9 into swiftlang:main Nov 2, 2020
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.

4 participants