-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Pass -disable-sandbox
to Swift compiler if requested
#7167
Conversation
@swift-ci please test |
We're still blocked on testing macros in general, so this does not come with any tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be covered with a test?
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
3ce6666
to
2516334
Compare
@swift-ci please test |
@swift-ci please test windows |
3 similar comments
@swift-ci please test windows |
@swift-ci please test windows |
@swift-ci please test windows |
Hm, looks like #7015 broke the build maybe? |
Yah, I can't build locally anymore, either. |
@swift-ci please test macOS |
@jpsim this has to be cherry-picked to |
I wasn't aware that 5.10 had already branched off. @neonichu could you please cherry-pick this into |
The Same for |
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)
…xing (#1206) This should solve #1202 and #1204 > There were issues with Swift compiler plugins (incl. macros) and nested sandboxes on macOS with Swift 5.9 that have been fixed with 5.10: > swift: [swiftlang/swift#70079](swiftlang/swift#70079) > swift-driver: [swiftlang/swift-driver#1493](swiftlang/swift-driver#1493) > swift-package-manager: [swiftlang/swift-package-manager#7167](swiftlang/swift-package-manager#7167) I am not sure whether this flag is required on Linux too. --------- Signed-off-by: Adin Cebic <[email protected]> Co-authored-by: Brentley Jones <[email protected]>
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