Skip to content

Commit

Permalink
Apply strict concurrency for Bazel and SPM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jszumski committed May 29, 2024
1 parent da34c78 commit 65e5959
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ swift_library(
name = "Paralayout.lib",
srcs = glob(["Paralayout/**/*.swift"]),
module_name = "Paralayout",
copts = ["-strict-concurrency=complete"],
tags = ["manual"],
visibility = ["//visibility:public"],
deps = [],
Expand All @@ -22,6 +23,7 @@ swift_library(
testonly = True,
srcs = glob(["ParalayoutTests/**/*.swift"]),
module_name = "ParalayoutTests",
copts = ["-strict-concurrency=complete"],
tags = ["manual"],
deps = [":Paralayout.lib"],
)
Expand Down
12 changes: 9 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.0.1
// swift-tools-version:5.10.0

//
// Copyright 2020 Square Inc.
Expand Down Expand Up @@ -33,12 +33,18 @@ let package = Package(
.target(
name: "Paralayout",
dependencies: [],
path: "Paralayout"
path: "Paralayout",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(
name: "ParalayoutTests",
dependencies: ["Paralayout"],
path: "ParalayoutTests"
path: "ParalayoutTests",
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
],
swiftLanguageVersions: [.v5]
Expand Down

0 comments on commit 65e5959

Please sign in to comment.