Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.10
// swift-tools-version:6.2
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will cause everything to compile in Swift 6 language mode as well, right? That's probably fine (if we've fixed all the relevant issues), but should we add in swiftLanguageModes: [.v5] for now so that we don't change the language mode as part of an otherwise unrelated change, and then we can go back and audit it for Swift 6 support later?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds sensible to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was aware and wanted to see what the CI says. It looks like we are compiling cleanly in Swift 6 mode. I will change it back to Swift 5 mode for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just when I wrote this comment I saw that we are actually setting the language mode already in all of our manifests.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Well that's what I get for not expanding the diff far enough.


// Package.swift
//
Expand Down Expand Up @@ -350,10 +350,8 @@ let package = Package(
"protobuf/upb_generator/minitable/names_internal.cc",
],
cSettings: [
.unsafeFlags([
"-Wno-conversion",
"-Wno-deprecated-declarations",
])
.disableWarning("conversion"),
.disableWarning("deprecated-declarations"),
],
cxxSettings: [
.headerSearchPath("abseil/"),
Expand All @@ -363,10 +361,8 @@ let package = Package(
.headerSearchPath("protobuf/upb/"),
.headerSearchPath("protobuf/upb_generator/"),
.define("UPB_BOOTSTRAP_STAGE", to: "0"),
.unsafeFlags([
"-Wno-conversion",
"-Wno-deprecated-declarations",
]),
.disableWarning("conversion"),
.disableWarning("deprecated-declarations"),
],
linkerSettings: [
.linkedFramework(
Expand Down
Loading