Skip to content

[5.10] Pass -disable-sandbox to Swift compiler if requested #7227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented Jan 4, 2024

The Swift compiler supports disabling sandboxing for macros now, so we should opt-in to that if the selected toolchain supports it and the user has disabled sandboxing. We warn if macros are being used and disabling sandboxing was requested but isn't available.

(cherry picked from commit 23042d6)

The Swift compiler supports disabling sandboxing for macros now, so we
should opt-in to that if the selected toolchain supports it and the user
has disabled sandboxing. We warn if macros are being used and disabling
sandboxing was requested but isn't available.

rdar://118851130
(cherry picked from commit 23042d6)
@neonichu neonichu self-assigned this Jan 4, 2024
@neonichu neonichu changed the title Pass -disable-sandbox to Swift compiler if requested (#7167) [5.10] Pass -disable-sandbox to Swift compiler if requested Jan 4, 2024
@neonichu neonichu added the swift 5.10 This PR targets the 5.10 branch label Jan 4, 2024
@neonichu
Copy link
Contributor Author

neonichu commented Jan 4, 2024

Not sure if this actually works, locally I see a large amount of test failures but that may be because 5.11 can't be used to develop 5.10 anymore?

@neonichu
Copy link
Contributor Author

neonichu commented Jan 4, 2024

@swift-ci please test

@neonichu neonichu merged commit c4a891f into release/5.10 Jan 5, 2024
@neonichu neonichu deleted the disable-sandbox-swiftc-if-disabled-5.10 branch January 5, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift 5.10 This PR targets the 5.10 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants