Skip to content

[6.4] Add SWIFTC_DISABLE_SANDBOX Swift compiler xcspec settings#1498

Merged
bkhouri merged 1 commit into
swiftlang:release/6.4.xfrom
bkhouri:t/6.4.x/rdar179641209_disable-sandbox_regress_add_SWIFTC_DISABLE_SANDBOX_build_setting
Jul 3, 2026
Merged

[6.4] Add SWIFTC_DISABLE_SANDBOX Swift compiler xcspec settings#1498
bkhouri merged 1 commit into
swiftlang:release/6.4.xfrom
bkhouri:t/6.4.x/rdar179641209_disable-sandbox_regress_add_SWIFTC_DISABLE_SANDBOX_build_setting

Conversation

@bkhouri

@bkhouri bkhouri commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Some package systems (e.g: HomeBrew, Nix) use a custom build sandbox. Within the outer sandbox, Swift Toolchain should not create their own sandbox, which is why SwiftPM offers a --disable-sandbox options.

Add a Swift compiler XCSpec setting that, when set, passes the respective command line argument to the swiftc compiler.

Relates to: swiftlang/swift-package-manager#7098
Issue: rdar://179641209
Issue: rdar://FB23149934 (Customer Feedback)

bkhouri added a commit to bkhouri/swift-package-manager that referenced this pull request Jun 30, 2026
Some package systems (e.g: HomeBrew, Nix) use a custom build sandbox.
Within the outer sandbox, Swift Toolchain should not create their own
sandbox, which is why SwiftPM offers a `--disable-sandbox` options.

The option is inneffective in Swift toolchain included with Xcode Beta
(Xcode 27A5194q, Swift 6.4.0.20.104).

Add a test to ensure the issues does not regress.

Relates to: swiftlang#7098
Depends on: swiftlang/swift-build#1498
Issue: rdar://179641209

@owenv owenv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm aside from one comment on the test

Comment thread Tests/SWBTaskConstructionTests/SwiftTaskConstructionTests.swift Outdated
@bkhouri bkhouri force-pushed the t/6.4.x/rdar179641209_disable-sandbox_regress_add_SWIFTC_DISABLE_SANDBOX_build_setting branch from 88e71f2 to 6c11adb Compare June 30, 2026 19:42
@bkhouri

bkhouri commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri bkhouri self-assigned this Jun 30, 2026
bkhouri added a commit to bkhouri/swift-package-manager that referenced this pull request Jul 1, 2026
Some package systems (e.g: HomeBrew, Nix) use a custom build sandbox.
Within the outer sandbox, Swift Toolchain should not create their own
sandbox, which is why SwiftPM offers a `--disable-sandbox` options.

The option is inneffective in Swift toolchain included with Xcode Beta
(Xcode 27A5194q, Swift 6.4.0.20.104).

Add a test to ensure the issues does not regress.

Relates to: swiftlang#7098
Depends on: swiftlang/swift-build#1498
Issue: rdar://179641209
Comment thread Sources/SWBUniversalPlatform/Specs/Swift.xcspec Outdated
@bkhouri bkhouri force-pushed the t/6.4.x/rdar179641209_disable-sandbox_regress_add_SWIFTC_DISABLE_SANDBOX_build_setting branch from 6c11adb to dbf2652 Compare July 2, 2026 14:48
@bkhouri

bkhouri commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test

Some package systems (e.g: HomeBrew, Nix) use a custom build sandbox.
Within the outer sandbox, Swift Toolchain should not create their own
sandbox, which is why SwiftPM offers a `--disable-sandbox` options.

Add a Swift compiler XCSpec setting that, when set, passes the respective
command line argument to the swiftc compiler.

Relates to: swiftlang/swift-package-manager#7098
Issue: rdar://179641209
@bkhouri bkhouri force-pushed the t/6.4.x/rdar179641209_disable-sandbox_regress_add_SWIFTC_DISABLE_SANDBOX_build_setting branch from dbf2652 to f8cb6c9 Compare July 2, 2026 19:37
@bkhouri

bkhouri commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@bkhouri bkhouri merged commit 5c48c96 into swiftlang:release/6.4.x Jul 3, 2026
221 of 249 checks passed
@bkhouri

bkhouri commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

The same builds are failing against #1507, which only modified GitHub Actions. This gives me more confidence that CI failures are unrelated to this PR. As a result, I'm going to merge the PR.

@bkhouri bkhouri deleted the t/6.4.x/rdar179641209_disable-sandbox_regress_add_SWIFTC_DISABLE_SANDBOX_build_setting branch July 3, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants