Skip to content
Closed

swift 6.2 #244944

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
172 changes: 72 additions & 100 deletions Formula/s/swift.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
desc "High-performance system programming language"
homepage "https://www.swift.org"
# NOTE: Keep version in sync with resources below
url "https://github.com/swiftlang/swift/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "eef9f312d00540cfabc35cb1da9221dd15d3aaca546497a14f29a641ee6484e3"
url "https://github.com/swiftlang/swift/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "012bd56c8edd2c61df4cddad5d2fd634c045146016570a431cd1a0e0c28a16a9"
license "Apache-2.0"

# This uses the `GithubLatest` strategy because a `-RELEASE` tag is often
Expand Down Expand Up @@ -70,94 +70,72 @@
end

resource "swift-corelibs-foundation" do
url "https://github.com/apple/swift-corelibs-foundation/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "62c276a18fa3b3b92e95f5349dc125d03f09cea3c477b3af1428ccdbab29e139"
url "https://github.com/apple/swift-corelibs-foundation/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "871b5b034b0f42b26b9da0f50bea7f7e24f12594fa5b9536c622acb3d942dbe6"
end

resource "swift-foundation" do
url "https://github.com/apple/swift-foundation/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "31ee3ea95a015049d3f6a5cfe8bd3a460071fa0086c1d112efaf0580611d162c"
url "https://github.com/apple/swift-foundation/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "94a6f5356ad2603c8bb325cafb26476af0d6007712a089d6427441357c9bfaab"
end

resource "swift-foundation-icu" do
url "https://github.com/apple/swift-foundation-icu/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "c4332b4e6cc008a5a7045ad7f368df7deb518f286ecd5a78839066dcc07a853a"
url "https://github.com/apple/swift-foundation-icu/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "484b06da71a21730827dec01a8b3565035e4e8dee2b3e1a7b171136a1d74341a"
end

resource "swift-corelibs-libdispatch" do
url "https://github.com/apple/swift-corelibs-libdispatch/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "444c0de5fe18e148548a3f3b60b3bac3d4d586285c21064346c7ca17ed1d4fac"
url "https://github.com/apple/swift-corelibs-libdispatch/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "d4b8171d6711dabc3cb81093e954cedd521c8e4c170a688c1c369194c9eae4b3"
end

resource "swift-corelibs-xctest" do
url "https://github.com/apple/swift-corelibs-xctest/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "eb131d1cfde18548c5fc782ba56bc871b13057b5e7b6992ddae4d4349360571d"
url "https://github.com/apple/swift-corelibs-xctest/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "e511797ba3202b77f925f9cd8afa7884bc7104e1e509b00663d48dc5185bfc20"
end
end

# Currently requires Clang to build successfully.
fails_with :gcc

resource "llvm-project" do
url "https://github.com/swiftlang/llvm-project/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "d93ca164615938e5026a2d1af76b2ef7514eae98b38a716f3278bc1a6dfc8f92"

# Support Python 3.13.
# Remove with Swift 6.1.
patch do
url "https://github.com/swiftlang/llvm-project/commit/b202bacbaf2be144dfd51d083eb2e4fe687a3803.patch?full_index=1"
sha256 "a7368e3b91a3dc4ebfd78f61e865a621eee37c176ac88bea68f1327151e695cc"
end
url "https://github.com/swiftlang/llvm-project/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "394a5ac36216820031f5ab70d78eeb8cf466d868ce436b20e857282d6408c5bd"
end

resource "cmark" do
url "https://github.com/swiftlang/swift-cmark/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "ab1064350ecedd5b3c0f2a6fbe3acefbc45d7accf1e4ca1591ce04d0c6787e40"
url "https://github.com/swiftlang/swift-cmark/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "f5cb03fa6aab841742ff10dfcd4d8422682e8528e28a4cd4e2d18aa87bf0e95c"
end

resource "llbuild" do
url "https://github.com/swiftlang/swift-llbuild/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "68d71bf7e0882153c6ad91fbe0626ab761d8bc46d2d93ce32cbfa392d256a30e"

# Workaround Homebrew sqlite3 not being found.
# Needs paired inreplace for @@HOMEBREW_PREFIX@@.
# https://github.com/swiftlang/swift-llbuild/issues/901
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/0080c7317c51d16b17671640c5db665516402d2f/swift/llbuild-sqlite3.patch"
sha256 "97329a525dabf4a7a13d3e3237965e66ae456887776e0101e82b6ca125a97591"
end
url "https://github.com/swiftlang/swift-llbuild/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "d03b967786d710d4206644071ad1c0b006e13ea3ab2a3866601c3feba23f5937"
end

resource "swiftpm" do
url "https://github.com/swiftlang/swift-package-manager/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "03c5b8dfd8628de42ca1c171faeeddea977ecdad8675d3826a2c165ad8f972ba"
url "https://github.com/swiftlang/swift-package-manager/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "ceb1e5c6fc1b4a5e0b69d2897a336c1c57be07202bfc5d8d7b486be82bd78215"
end

resource "indexstore-db" do
url "https://github.com/swiftlang/indexstore-db/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "fdaceb80a819e5b86d1599e7357c79e518a3ff0bb96dcd82245fc50e3d6bbc0d"

# Fix compile with Clang 19.
# Remove with Swift 6.1.
patch do
url "https://github.com/swiftlang/indexstore-db/commit/6120b53b1e8774ef4e2ad83438d4d94961331e72.patch?full_index=1"
sha256 "1726948896ff5def5e3eb925cddd4ee24e488568ad6815023b43aa49f34874d6"
end
url "https://github.com/swiftlang/indexstore-db/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "167c53c0fae33b95a215af0c899623f665911999165cbe1a231d3d161de7d0eb"
end

resource "sourcekit-lsp" do
url "https://github.com/swiftlang/sourcekit-lsp/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "928db64bc179a250afd305b5729217180e2de1cdcd3d353d0fa20b38c5def8ec"
url "https://github.com/swiftlang/sourcekit-lsp/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "d146994288c4359712a1577120a972b65fa23b543b1a172d93d03322056dc5ee"
end

resource "swift-driver" do
url "https://github.com/swiftlang/swift-driver/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "9ee38eda1a0adc24dd995b345dff4a5a25d42ae8d063fcc04b170469f2f53d43"
url "https://github.com/swiftlang/swift-driver/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "ffec2b3e20e5a9270d5328fde48ea14d11616514f89a718284c96e239f7ec49c"
end

resource "swift-tools-support-core" do
url "https://github.com/swiftlang/swift-tools-support-core/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "fc83e9922d4c7df0f0d94b8840f292989eb148d5e451b182a9e390a9ea4dd94e"
url "https://github.com/swiftlang/swift-tools-support-core/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "f8b453d6b7223e4026ae545301bc7ea637d73240fa5e2fd22030e8d209b37b6f"

# Fix "close error" when compiling SwiftPM.
# https://github.com/swiftlang/swift-tools-support-core/pull/456
Expand All @@ -168,117 +146,110 @@
end

resource "swift-docc" do
url "https://github.com/swiftlang/swift-docc/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "00d8e95a7fdae71c7313389ced0fd4d63185782f8d2fa6d4683672f700478195"
url "https://github.com/swiftlang/swift-docc/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "13c74815b7657dc3048c75c364401e776274eb5dbcbd24a04e92f16735b6faee"
end

resource "swift-lmdb" do
url "https://github.com/swiftlang/swift-lmdb/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "1876f37050f42044ce9e614530f8001ce0fce6f44fff8a5ece7186591115f4b6"
url "https://github.com/swiftlang/swift-lmdb/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "89e3d5816775f48c1b19c03fa670b09e1b7582a7df8e68b1f9e7808495f1b0cf"
end

resource "swift-docc-render-artifact" do
url "https://github.com/swiftlang/swift-docc-render-artifact/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "d791c82bff3ed8e8a35a76c1fab9bc3a20ed7bd96aa91b40d50e822f11874863"
url "https://github.com/swiftlang/swift-docc-render-artifact/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "fb4719002f09090799558e27122e666db0259a8fc72557aa0f007e44cb1f886b"
end

resource "swift-docc-symbolkit" do
url "https://github.com/swiftlang/swift-docc-symbolkit/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "1bdcb65209d0487fa50d5ed41e108528c56259771f25b06a0bec911ccb224237"
url "https://github.com/swiftlang/swift-docc-symbolkit/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "f89c1b576e67be97eaaf2973026a9907f70858a1f90198bbcf634f4d2af3af9a"
end

resource "swift-markdown" do
url "https://github.com/swiftlang/swift-markdown/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "6c2cc30a8c0f8b6f1f4fa0f21af784722267bb9b6c38336718ae959cea5584e5"
url "https://github.com/swiftlang/swift-markdown/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "03304f13bb60e4ba78a83d98c4843094b26271e6e88a10feab7b2d0aa44a9910"
end

resource "swift-experimental-string-processing" do
url "https://github.com/swiftlang/swift-experimental-string-processing/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "6c34cfdf934eb781169866a66505e11541861ba638b05fd4ed87f8c34a6fa55e"
url "https://github.com/swiftlang/swift-experimental-string-processing/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "40027a11963771722a2539f538bdcc265c209cae7a9fd93d8f0a71f13e338b0d"
end

resource "swift-syntax" do
url "https://github.com/swiftlang/swift-syntax/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "30788e115f37b7d3f8fc1f5d436b80996f4945fc13287ed7e4391b358479fafd"
url "https://github.com/swiftlang/swift-syntax/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "482066ea299fdc05c9eb74886724a941d6ef09e84c6e75cc6ae7bb0040e768f2"
end

resource "swift-testing" do
url "https://github.com/swiftlang/swift-testing/archive/refs/tags/swift-6.0.3-RELEASE.tar.gz"
sha256 "c69bafdaaa849cae7265804bd1a8807ebadffbc51c005c343e4d1ce42a1e7b62"
url "https://github.com/swiftlang/swift-testing/archive/refs/tags/swift-6.2-RELEASE.tar.gz"
sha256 "0de80cc99b6938b8427ec9b4c1bef661c414db03ab29b30611cf28381705c832"
end

# To find the version to use, check the release/#{version.major_minor} entry of:
# https://github.com/swiftlang/swift/blob/swift-#{version}-RELEASE/utils/update_checkout/update-checkout-config.json
resource "swift-argument-parser" do
url "https://github.com/apple/swift-argument-parser/archive/refs/tags/1.2.3.tar.gz"
sha256 "4a10bbef290a2167c5cc340b39f1f7ff6a8cf4e1b5433b68548bf5f1e542e908"
url "https://github.com/apple/swift-argument-parser/archive/refs/tags/1.6.1.tar.gz"
sha256 "d2fbb15886115bb2d9bfb63d4c1ddd4080cbb4bfef2651335c5d3b9dd5f3c8ba"
end

# As above: refer to update-checkout-config.json
resource "swift-atomics" do
url "https://github.com/apple/swift-atomics/archive/refs/tags/1.2.0.tar.gz"
sha256 "33d9f4fbaeddee4bda3af2be126791ee8acf3d3c24a2244457641a20d39aec12"
url "https://github.com/apple/swift-atomics/archive/refs/tags/1.3.0.tar.gz"
sha256 "556761d16bae75278bb2c64d8ab510b98d133d0809ca06a2ba32fac96fae916e"
end

# As above: refer to update-checkout-config.json
resource "swift-collections" do
url "https://github.com/apple/swift-collections/archive/refs/tags/1.1.2.tar.gz"
sha256 "cd30d2f93c72424df48d182006417abdeebe74d250cb99d1cda78daf40aca569"
url "https://github.com/apple/swift-collections/archive/refs/tags/1.2.1.tar.gz"
sha256 "7474a23b80a4a86349c747900f6feab8a20be93faa9127e2a09bfa81b831a4b7"
end

# As above: refer to update-checkout-config.json
resource "swift-crypto" do
url "https://github.com/apple/swift-crypto/archive/refs/tags/3.0.0.tar.gz"
sha256 "5c860c0306d0393ff06268f361aaf958656e1288353a0e23c3ad20de04319154"
url "https://github.com/apple/swift-crypto/archive/refs/tags/3.15.0.tar.gz"
sha256 "2a81fa9e9b15cab3b215abe86cbe0ab49cea32ba6353200091b9a1ab6fd0dbb8"
end

# As above: refer to update-checkout-config.json
resource "swift-certificates" do
url "https://github.com/apple/swift-certificates/archive/refs/tags/1.0.1.tar.gz"
sha256 "fcaca458aab45ee69b0f678b72c2194b15664cc5f6f5e48d0e3f62bc5d1202ca"
url "https://github.com/apple/swift-certificates/archive/refs/tags/1.14.0.tar.gz"
sha256 "123859cea6ab8b1d77407037bd4c2e77ad89eab4e2a0b177e0482717346c4867"
end

# As above: refer to update-checkout-config.json
resource "swift-asn1" do
url "https://github.com/apple/swift-asn1/archive/refs/tags/1.0.0.tar.gz"
sha256 "e0da995ae53e6fcf8251887f44d4030f6600e2f8f8451d9c92fcaf52b41b6c35"
url "https://github.com/apple/swift-asn1/archive/refs/tags/1.4.0.tar.gz"
sha256 "a08cbe06e06964e29c6d50ee58de05f3492073805ab9f6cc712ef99fb2b50232"
end

# As above: refer to update-checkout-config.json
resource "swift-numerics" do
url "https://github.com/apple/swift-numerics/archive/refs/tags/1.0.2.tar.gz"
sha256 "786291c6ff2a83567928d3d8f964c43ff59bdde215f9dedd0e9ed49eb5184e59"
url "https://github.com/apple/swift-numerics/archive/refs/tags/1.1.0.tar.gz"
sha256 "1a94f33001202bcf13dc1d8a7acf8691b81c165f6893ba6679cba5744f24341d"
end

# As above: refer to update-checkout-config.json
resource "swift-system" do
url "https://github.com/apple/swift-system/archive/refs/tags/1.3.0.tar.gz"
sha256 "02e13a7f77887c387f5aa1de05f4d4b8b158c35145450e1d9557d6c42b06cd1f"
url "https://github.com/apple/swift-system/archive/refs/tags/1.6.3.tar.gz"
sha256 "09039b8a7ff98319d329f8de3c9dadf76f47fc35066bc520776ea16e0576dfbc"
end

# As above: refer to update-checkout-config.json
resource "yams" do
url "https://github.com/jpsim/Yams/archive/refs/tags/5.0.6.tar.gz"
sha256 "a81c6b93f5d26bae1b619b7f8babbfe7c8abacf95b85916961d488888df886fb"
url "https://github.com/jpsim/Yams/archive/refs/tags/6.1.0.tar.gz"
sha256 "9561244f85187e19a497e475741fa6dba0d33fb04e43c3f517718551c40c9efb"
end

# As above: refer to update-checkout-config.json
resource "swift-nio" do
url "https://github.com/apple/swift-nio/archive/refs/tags/2.31.2.tar.gz"
sha256 "8818b8e991d36e886b207ae1023fa43c5eada7d6a1951a52ad70f7f71f57d9fe"
url "https://github.com/apple/swift-nio/archive/refs/tags/2.86.0.tar.gz"
sha256 "8d179c28ac19a4657ee45b81c30bbb92b47dc18d9d4d151c6bb3f162e64c8ccf"
end

# As above: refer to update-checkout-config.json
resource "swift-nio-ssl" do
url "https://github.com/apple/swift-nio-ssl/archive/refs/tags/2.15.0.tar.gz"
sha256 "9ab1f0e347fad651ed5ccadc13d54c4306e6f5cd21908a4ba7d1334278a4cd55"
end

# Fix build with Xcode 16.
# Remove with Swift 6.1 (or earlier if it gets cherry-picked).
patch do
url "https://github.com/swiftlang/swift/commit/c8d7e94fdd2c8ceb276a6dc363861872f13104ba.patch?full_index=1"
sha256 "aa012b9522ddbe92da9ab6a491dd43097b723e7807e813c57edd458f4baf3b12"
url "https://github.com/apple/swift-nio-ssl/archive/refs/tags/2.34.0.tar.gz"
sha256 "bb301de32901f2ca82bff0ef8180d28e671f0f5b39314c8207fdfcb1dacfe405"
end

# Homebrew-specific patch to make the default resource directory use opt rather than Cellar.
Expand All @@ -289,7 +260,7 @@
sha256 "5210ca0fd95b960d596c058f5ac76412a6987d2badf5394856bb9e31d3c68833"
end

def install

Check failure on line 263 in Formula/s/swift.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle swift` failed on macOS Sequoia (15) on Apple Silicon!

/private/tmp/swift-20250921-9674-w783n3/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:446:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 444 | @freestanding(expression) 445 | @_documentation(visibility: private) 446 | public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 447 | throws error: E, 448 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9674-w783n3/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:487:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 485 | /// ``expect(throws:_:sourceLocation:performing:)-1hfms`` instead. 486 | @discardableResult 487 | @freestanding(expression) public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 488 | throws error: E, 489 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9674-w783n3/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:534:14: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 532 | @freestanding(expression) 533 | @_documentation(visibility: private) 534 | public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 535 | throws error: E, 536 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9674-w783n3/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:579:40: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 577 | /// ``require(throws:_:sourceLocation:performing:)-7n34r`` instead. 578 | @discardableResult 579 | @freestanding(expression) public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 580 | throws error: E, 581 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9674-w783n3/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:646:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 644 | @freestanding(expression) 645 | @_documentation(visibility: private) 646 | public macro expect<R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 647 | _ comment: @autoclosure () -> Comment? = nil, 648 | sourceLocation: SourceLocation = #_sourceLocation, /private/tmp/swift-20250921-9674-w783n3/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:709:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'Testing

Check warning on line 263 in Formula/s/swift.rb

View workflow job for this annotation

GitHub Actions / macOS 26-arm64

`brew install --verbose --formula --build-bottle swift` failed on macOS Tahoe (26) on Apple Silicon!

/private/tmp/swift-20250921-9926-j7mp45/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:446:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 444 | @freestanding(expression) 445 | @_documentation(visibility: private) 446 | public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 447 | throws error: E, 448 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9926-j7mp45/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:487:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 485 | /// ``expect(throws:_:sourceLocation:performing:)-1hfms`` instead. 486 | @discardableResult 487 | @freestanding(expression) public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 488 | throws error: E, 489 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9926-j7mp45/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:534:14: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 532 | @freestanding(expression) 533 | @_documentation(visibility: private) 534 | public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 535 | throws error: E, 536 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9926-j7mp45/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:579:40: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 577 | /// ``require(throws:_:sourceLocation:performing:)-7n34r`` instead. 578 | @discardableResult 579 | @freestanding(expression) public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 580 | throws error: E, 581 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-9926-j7mp45/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:646:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 644 | @freestanding(expression) 645 | @_documentation(visibility: private) 646 | public macro expect<R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 647 | _ comment: @autoclosure () -> Comment? = nil, 648 | sourceLocation: SourceLocation = #_sourceLocation, /private/tmp/swift-20250921-9926-j7mp45/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:709:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'Testing

Check failure on line 263 in Formula/s/swift.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle swift` failed on macOS Sonoma (14) on Apple Silicon!

/private/tmp/swift-20250921-10053-6flgr6/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:446:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 444 | @freestanding(expression) 445 | @_documentation(visibility: private) 446 | public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 447 | throws error: E, 448 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-10053-6flgr6/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:487:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 485 | /// ``expect(throws:_:sourceLocation:performing:)-1hfms`` instead. 486 | @discardableResult 487 | @freestanding(expression) public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 488 | throws error: E, 489 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-10053-6flgr6/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:534:14: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 532 | @freestanding(expression) 533 | @_documentation(visibility: private) 534 | public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 535 | throws error: E, 536 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-10053-6flgr6/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:579:40: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 577 | /// ``require(throws:_:sourceLocation:performing:)-7n34r`` instead. 578 | @discardableResult 579 | @freestanding(expression) public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 580 | throws error: E, 581 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250921-10053-6flgr6/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:646:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 644 | @freestanding(expression) 645 | @_documentation(visibility: private) 646 | public macro expect<R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 647 | _ comment: @autoclosure () -> Comment? = nil, 648 | sourceLocation: SourceLocation = #_sourceLocation, /private/tmp/swift-20250921-10053-6flgr6/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:709:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'T

Check failure on line 263 in Formula/s/swift.rb

View workflow job for this annotation

GitHub Actions / Linux arm64

`brew install --verbose --formula --build-bottle swift` failed on Linux arm64!

--- bootstrap | 2025-09-22 03:58:49,322 | INFO | MainThread | helpers | call | Line:69 | executing command >>> ['env', 'MACOSX_DEPLOYMENT_TARGET=12.0', '/home/linuxbrew/.linuxbrew/opt/cmake/bin/cmake', '-G', 'Ninja', '-DCMAKE_MAKE_PROGRAM=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/ninja', '-DCMAKE_BUILD_TYPE:=Release', '', '-DCMAKE_Swift_FLAGS=\' -module-cache-path "/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-build/module-cache"\'', '-DCMAKE_Swift_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/swiftc', '-DCMAKE_C_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/clang', '-DCMAKE_AR:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ar', '-DCMAKE_RANLIB:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ranlib', '-DLLBuild_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/llbuild-linux-aarch64/cmake/modules', '-DSwiftSystem_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-system/cmake/modules', '-DSwiftASN1_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-asn1/cmake/modules', '-DSwiftCrypto_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-crypto/cmake/modules', '-DTSC_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/tsc/cmake/modules', '-DArgumentParser_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-argument-parser/cmake/modules', '-DSwiftDriver_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-driver/cmake/modules', '/var/tmp/swift-20250922-12997-1fi00p/swiftpm/../swift-build'] with cwd /var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-build CMake Warning: Ignoring empty string ("") provided on the command line. CMake Error: The source directory "/var/tmp/swift-20250922-12997-1fi00p/swift-build" does not exist. Specify --help for usage, or press the help button on the CMake GUI. --- bootstrap | 2025-09-22 03:58:49,326 | DEBUG | MainThread | helpers | call | Line:72 | executing command >>> ['env', 'MACOSX_DEPLOYMENT_TARGET=12.0', '/home/linuxbrew/.linuxbrew/opt/cmake/bin/cmake', '-G', 'Ninja', '-DCMAKE_MAKE_PROGRAM=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/ninja', '-DCMAKE_BUILD_TYPE:=Release', '', '-DCMAKE_Swift_FLAGS=\' -module-cache-path "/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-build/module-cache"\'', '-DCMAKE_Swift_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/swiftc', '-DCMAKE_C_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/clang', '-DCMAKE_AR:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ar', '-DCMAKE_RANLIB:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ranlib', '-DLLBuild_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/llbuild-linux-aarch64/cmake/modules', '-DSwiftSystem_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-system/cmake/modules', '-DSwiftASN1_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-asn1/cmake/modules', '-DSwiftCrypto_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-crypto/cmake/modules', '-DTSC_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/tsc/cmake/modules', '-DArgumentParser_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-argument-parser/cmake/modules', '-DSwiftDriver_DIR=/var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gnu/swift-driver/cmake/modules', '/var/tmp/swift-20250922-12997-1fi00p/swiftpm/../swift-build'] with cwd /var/tmp/swift-20250922-12997-1fi00p/build/swiftpm-linux-aarch64/aarch64-unknown-linux-gn

Check failure on line 263 in Formula/s/swift.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew install --verbose --formula --build-bottle swift` failed on macOS Sonoma (14)!

/private/tmp/swift-20250922-9580-83fidt/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:446:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 444 | @freestanding(expression) 445 | @_documentation(visibility: private) 446 | public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 447 | throws error: E, 448 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250922-9580-83fidt/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:487:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 485 | /// ``expect(throws:_:sourceLocation:performing:)-1hfms`` instead. 486 | @discardableResult 487 | @freestanding(expression) public macro expect<E, R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 488 | throws error: E, 489 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250922-9580-83fidt/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:534:14: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 532 | @freestanding(expression) 533 | @_documentation(visibility: private) 534 | public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 535 | throws error: E, 536 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250922-9580-83fidt/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:579:40: warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 577 | /// ``require(throws:_:sourceLocation:performing:)-7n34r`` instead. 578 | @discardableResult 579 | @freestanding(expression) public macro require<E, R>( | `- warning: external macro implementation type 'TestingMacros.RequireMacro' could not be found for macro 'require(throws:_:sourceLocation:performing:)'; plugin for module 'TestingMacros' not found 580 | throws error: E, 581 | _ comment: @autoclosure () -> Comment? = nil, /private/tmp/swift-20250922-9580-83fidt/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:646:14: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 644 | @freestanding(expression) 645 | @_documentation(visibility: private) 646 | public macro expect<R>( | `- warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'TestingMacros' not found 647 | _ comment: @autoclosure () -> Comment? = nil, 648 | sourceLocation: SourceLocation = #_sourceLocation, /private/tmp/swift-20250922-9580-83fidt/swift-testing/Sources/Testing/Expectations/Expectation+Macro.swift:709:40: warning: external macro implementation type 'TestingMacros.ExpectMacro' could not be found for macro 'expect(_:sourceLocation:performing:throws:)'; plugin for module 'Testing

Check failure on line 263 in Formula/s/swift.rb

View workflow job for this annotation

GitHub Actions / Linux x86_64

`brew install --verbose --formula --build-bottle swift` failed on Linux x86_64!

--- bootstrap | 2025-09-22 06:01:10,009 | INFO | MainThread | helpers | call | Line:69 | executing command >>> ['env', 'MACOSX_DEPLOYMENT_TARGET=12.0', '/home/linuxbrew/.linuxbrew/opt/cmake/bin/cmake', '-G', 'Ninja', '-DCMAKE_MAKE_PROGRAM=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/ninja', '-DCMAKE_BUILD_TYPE:=Release', '', '-DCMAKE_Swift_FLAGS=\' -module-cache-path "/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-build/module-cache"\'', '-DCMAKE_Swift_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/swiftc', '-DCMAKE_C_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/clang', '-DCMAKE_AR:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ar', '-DCMAKE_RANLIB:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ranlib', '-DLLBuild_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/llbuild-linux-x86_64/cmake/modules', '-DSwiftSystem_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-system/cmake/modules', '-DSwiftASN1_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-asn1/cmake/modules', '-DSwiftCrypto_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-crypto/cmake/modules', '-DTSC_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/tsc/cmake/modules', '-DArgumentParser_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-argument-parser/cmake/modules', '-DSwiftDriver_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-driver/cmake/modules', '/var/tmp/swift-20250922-12999-oydp0f/swiftpm/../swift-build'] with cwd /var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-build CMake Warning: Ignoring empty string ("") provided on the command line. CMake Error: The source directory "/var/tmp/swift-20250922-12999-oydp0f/swift-build" does not exist. Specify --help for usage, or press the help button on the CMake GUI. --- bootstrap | 2025-09-22 06:01:10,014 | DEBUG | MainThread | helpers | call | Line:72 | executing command >>> ['env', 'MACOSX_DEPLOYMENT_TARGET=12.0', '/home/linuxbrew/.linuxbrew/opt/cmake/bin/cmake', '-G', 'Ninja', '-DCMAKE_MAKE_PROGRAM=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/ninja', '-DCMAKE_BUILD_TYPE:=Release', '', '-DCMAKE_Swift_FLAGS=\' -module-cache-path "/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-build/module-cache"\'', '-DCMAKE_Swift_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/swiftc', '-DCMAKE_C_COMPILER:=/home/linuxbrew/.linuxbrew/Cellar/swift/6.2/libexec/bin/clang', '-DCMAKE_AR:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ar', '-DCMAKE_RANLIB:PATH=/home/linuxbrew/.linuxbrew/opt/binutils/bin/ranlib', '-DLLBuild_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/llbuild-linux-x86_64/cmake/modules', '-DSwiftSystem_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-system/cmake/modules', '-DSwiftASN1_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-asn1/cmake/modules', '-DSwiftCrypto_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-crypto/cmake/modules', '-DTSC_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/tsc/cmake/modules', '-DArgumentParser_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-argument-parser/cmake/modules', '-DSwiftDriver_DIR=/var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-driver/cmake/modules', '/var/tmp/swift-20250922-12999-oydp0f/swiftpm/../swift-build'] with cwd /var/tmp/swift-20250922-12999-oydp0f/build/swiftpm-linux-x86_64/x86_64-unknown-linux-gnu/swift-build --- bootstrap | 2025
workspace = buildpath.parent
build = workspace/"build"

Expand All @@ -307,10 +278,12 @@
# This conflicts with Homebrew's sandbox.
helpers_using_swiftpm = [
workspace/"indexstore-db/Utilities/build-script-helper.py",
workspace/"sourcekit-lsp/Utilities/build-script-helper.py",
workspace/"swift-docc/build-script-helper.py",
]
inreplace helpers_using_swiftpm, "swiftpm_args = [", "\\0'--disable-sandbox',"
inreplace workspace/"sourcekit-lsp/Utilities/build-script-helper.py",
"swiftpm_args: List[str] = [",
"\\0'--disable-sandbox',"
inreplace workspace/"swift-docc/build-script-helper.py",
"[swift_exec, 'package',",
"\\0 '--disable-sandbox',"
Expand All @@ -330,10 +303,9 @@

# Fix Linux RPATH for Swift Foundation
if OS.linux?
inreplace [
workspace/"swift-corelibs-foundation/Sources/FoundationNetworking/CMakeLists.txt",
workspace/"swift-corelibs-foundation/Sources/FoundationXML/CMakeLists.txt",
], '"$ORIGIN"', "\"$ORIGIN:#{ENV["HOMEBREW_RPATH_PATHS"]}\""
inreplace workspace/"swift-corelibs-foundation/CMakeLists.txt",
'"$ORIGIN"',
"\"$ORIGIN:#{ENV["HOMEBREW_RPATH_PATHS"]}\""
end

extra_cmake_options = if OS.mac?
Expand Down
Loading