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 SwiftPerfTool, reference master (0f66cc), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 04:32:20 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gavrilaf/SwiftPerfTool.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/gavrilaf/SwiftPerfTool
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0f66cc2 fixed compilation error on Linux
Cloned https://github.com/gavrilaf/SwiftPerfTool.git
Revision (git rev-parse @):
0f66cc25b648debace9d982a5c04a3dfab301ea1
SUCCESS checkout https://github.com/gavrilaf/SwiftPerfTool.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftperftool",
      "name": "SwiftPerfTool",
      "url": "https://github.com/gavrilaf/SwiftPerfTool.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftPerfTool",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/gavrilaf/SwiftPerfTool.git
[1/72] Fetching swiftperftool
Fetched https://github.com/gavrilaf/SwiftPerfTool.git from cache (0.59s)
Creating working copy for https://github.com/gavrilaf/SwiftPerfTool.git
Working copy of https://github.com/gavrilaf/SwiftPerfTool.git resolved at master (0f66cc2)
warning: '.resolve-product-dependencies': dependency 'swiftperftool' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/gavrilaf/SwiftPerfTool.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling SwiftPerfTool SwiftPerfTool.swift
[4/8] Compiling SwiftPerfTool Scores.swift
[5/8] Compiling SwiftPerfTool ApproximateEquatable.swift
[6/8] Compiling SwiftPerfTool Memory.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPerfTool/Memory.swift:9:19: warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 7 |
 8 |     let kerr: kern_return_t = withUnsafeMutablePointer(to: &info) {
 9 |         task_info(mach_task_self_,
   |                   `- warning: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
10 |                   task_flavor_t(MACH_TASK_BASIC_INFO),
11 |                   $0.withMemoryRebound(to: Int32.self, capacity: 1) { zeroPtr in task_info_t(zeroPtr) },
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
  |            `- note: var declared here
[7/8] Compiling SwiftPerfTool Errors.swift
[8/8] Emitting module SwiftPerfTool
Build complete! (8.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftPerfTool",
  "name" : "SwiftPerfTool",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftPerfTool",
      "targets" : [
        "SwiftPerfTool"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftPerfToolTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftPerfToolTests",
      "path" : "Tests/SwiftPerfToolTests",
      "sources" : [
        "ApproximateEquatableTests.swift",
        "LatencyMeasureTests.swift",
        "MemoryTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SwiftPerfTool"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftPerfTool",
      "module_type" : "SwiftTarget",
      "name" : "SwiftPerfTool",
      "path" : "Sources/SwiftPerfTool",
      "product_memberships" : [
        "SwiftPerfTool"
      ],
      "sources" : [
        "ApproximateEquatable.swift",
        "Errors.swift",
        "Memory.swift",
        "Scores.swift",
        "SwiftPerfTool.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.