Skip to content

Commit

Permalink
Sync strict concurrency build settings (realm#5813)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny authored Sep 29, 2024
1 parent ab699f9 commit b903e0b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ swift_binary(
name = "swiftlint",
package_name = "SwiftLint",
srcs = glob(["Source/swiftlint/**/*.swift"]),
copts = copts,
copts = copts + strict_concurrency_copts,
visibility = ["//visibility:public"],
deps = [
":SwiftLintFramework",
Expand Down
10 changes: 6 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let swiftFeatures: [SwiftSetting] = [
.enableUpcomingFeature("ForwardTrailingClosures"),
.enableUpcomingFeature("ImplicitOpenExistentials"),
]
let strictConcurrency = [SwiftSetting.enableExperimentalFeature("StrictConcurrency")]

let swiftLintPluginDependencies: [Target.Dependency]

Expand Down Expand Up @@ -55,7 +56,7 @@ let package = Package(
"SwiftLintFramework",
"SwiftyTextTable",
],
swiftSettings: swiftFeatures
swiftSettings: swiftFeatures + strictConcurrency
),
.testTarget(
name: "CLITests",
Expand Down Expand Up @@ -88,7 +89,8 @@ let package = Package(
),
.target(
name: "SwiftLintExtraRules",
dependencies: ["SwiftLintCore"]
dependencies: ["SwiftLintCore"],
swiftSettings: strictConcurrency
),
.target(
name: "SwiftLintFramework",
Expand All @@ -100,7 +102,7 @@ let package = Package(
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"CollectionConcurrencyKit",
],
swiftSettings: swiftFeatures
swiftSettings: swiftFeatures + strictConcurrency
),
.target(name: "DyldWarningWorkaround"),
.target(
Expand Down Expand Up @@ -155,7 +157,7 @@ let package = Package(
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
],
path: "Source/SwiftLintCoreMacros",
swiftSettings: swiftFeatures
swiftSettings: swiftFeatures + strictConcurrency
),
.testTarget(
name: "MacroTests",
Expand Down
2 changes: 1 addition & 1 deletion Source/SwiftLintCore/Models/Issue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public enum Issue: LocalizedError, Equatable {
case baselineNotReadable(path: String)

/// Flag to enable warnings for deprecations being printed to the console. Printing is enabled by default.
public static var printDeprecationWarnings = true
package nonisolated(unsafe) static var printDeprecationWarnings = true

/// Hook used to capture all messages normally printed to stdout and return them back to the caller.
///
Expand Down
3 changes: 0 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
strategy:
maxParallel: 10
matrix:
'13':
image: 'macOS-13'
xcode: '15.2'
'14':
image: 'macOS-14'
xcode: '15.4'
Expand Down

0 comments on commit b903e0b

Please sign in to comment.