This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Benchmarking with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/attaswift/Benchmarking.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/attaswift/Benchmarking
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5fb2680 Merge pull request #1 from kareman/Swift4.1
Cloned https://github.com/attaswift/Benchmarking.git
Revision (git rev-parse @):
5fb2680a1a3d6197f5dbba29d9d57c2c1c56799e
SUCCESS checkout https://github.com/attaswift/Benchmarking.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/attaswift/Benchmarking.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/6] Write sources
[3/6] Write swift-version-6F35C1178C84523A.txt
[5/18] Compiling OptionParser Syntax.swift
[6/18] Compiling OptionParser Help.swift
[7/18] Compiling BenchmarkIPC BenchmarkIPC.swift
[8/18] Emitting module BenchmarkIPC
[9/18] Compiling OptionParser OptionParser.swift
[10/18] Compiling OptionParser Option.swift
[11/18] Emitting module OptionParser
[12/18] Compiling OptionParser Command.swift
[13/18] Compiling OptionParser Argument.swift
[14/18] Compiling OptionParser OptionValue.swift
[15/18] Compiling OptionParser ParseContext.swift
[16/18] Compiling OptionParser Parameter.swift
[16/18] Write Objects.LinkFileList
[17/18] Archiving libOptionParser.a
[19/27] Compiling Benchmarking Noop.swift
[20/27] Compiling Benchmarking Shuffle.swift
[21/27] Compiling Benchmarking Benchmark.swift
[22/27] Emitting module Benchmarking
/Users/admin/builder/spi-builder-workspace/Benchmarking/Complain.swift:12:13: warning: var 'standardErrorStream' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |     }
11 | }
12 | private var standardErrorStream = ErrorStream()
   |             |- warning: var 'standardErrorStream' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'standardErrorStream' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'standardErrorStream' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public func complain(_ things: Any..., separator: String = " ", terminator: String = "\n") {
/Users/admin/builder/spi-builder-workspace/Benchmarking/Run.swift:9:1: warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
  7 | import BenchmarkIPC
  8 |
  9 | extension RunOptions.OutputFormat: OptionValue {}
    | |- warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 10 |
 11 | struct AttabenchOptions {
[23/27] Compiling Benchmarking InputGenerator.swift
[24/27] Compiling Benchmarking Output.swift
[25/27] Compiling Benchmarking Run.swift
/Users/admin/builder/spi-builder-workspace/Benchmarking/Run.swift:9:1: warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
  7 | import BenchmarkIPC
  8 |
  9 | extension RunOptions.OutputFormat: OptionValue {}
    | |- warning: extension declares a conformance of imported type 'OutputFormat' to imported protocol 'OptionValue'; this will not behave correctly if the owners of 'BenchmarkIPC' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 10 |
 11 | struct AttabenchOptions {
/Users/admin/builder/spi-builder-workspace/Benchmarking/Run.swift:70:13: warning: variable 'sizes' was never mutated; consider changing to 'let' constant
 68 |             tasks = taskTitles.map { self.tasks[$0]! }
 69 |         }
 70 |         var sizes = options.sizes
    |             `- warning: variable 'sizes' was never mutated; consider changing to 'let' constant
 71 |         guard !sizes.isEmpty else {
 72 |             throw OptionError("Need at least one size")
[26/27] Compiling Benchmarking Complain.swift
/Users/admin/builder/spi-builder-workspace/Benchmarking/Complain.swift:12:13: warning: var 'standardErrorStream' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 |     }
11 | }
12 | private var standardErrorStream = ErrorStream()
   |             |- warning: var 'standardErrorStream' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'standardErrorStream' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: annotate 'standardErrorStream' with '@MainActor' if property should only be accessed from the main actor
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | public func complain(_ things: Any..., separator: String = " ", terminator: String = "\n") {
[27/27] Compiling Benchmarking Timer.swift
Build complete! (28.88s)
Fetching https://github.com/attaswift/OptionParser
[1/82] Fetching optionparser
Fetched https://github.com/attaswift/OptionParser from cache (0.75s)
Computing version for https://github.com/attaswift/OptionParser
Computed https://github.com/attaswift/OptionParser at 1.0.0 (0.69s)
Creating working copy for https://github.com/attaswift/OptionParser
Working copy of https://github.com/attaswift/OptionParser resolved at 1.0.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "optionparser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/attaswift/OptionParser"
    }
  ],
  "manifest_display_name" : "Benchmarking",
  "name" : "Benchmarking",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Benchmarking",
      "targets" : [
        "Benchmarking",
        "BenchmarkIPC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4"
  ],
  "targets" : [
    {
      "c99name" : "Benchmarking",
      "module_type" : "SwiftTarget",
      "name" : "Benchmarking",
      "path" : "Benchmarking",
      "product_dependencies" : [
        "OptionParser"
      ],
      "product_memberships" : [
        "Benchmarking"
      ],
      "sources" : [
        "Benchmark.swift",
        "Complain.swift",
        "InputGenerator.swift",
        "Noop.swift",
        "Output.swift",
        "Run.swift",
        "Shuffle.swift",
        "Timer.swift"
      ],
      "target_dependencies" : [
        "BenchmarkIPC"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BenchmarkIPC",
      "module_type" : "SwiftTarget",
      "name" : "BenchmarkIPC",
      "path" : "BenchmarkIPC",
      "product_memberships" : [
        "Benchmarking"
      ],
      "sources" : [
        "BenchmarkIPC.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.