-
Notifications
You must be signed in to change notification settings - Fork 199
Loosen restriction for building deprecated iOS targets #994
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
Conversation
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.
This looks good, thank you!
I launched the tests from the compiler side because there's an equivalent check in the C++ driver so there could be tests affected there too. |
XCTFail() | ||
return | ||
} | ||
} | ||
|
||
XCTAssertThrowsError(try Driver(args: ["swiftc", "-emit-module", "-c", "-target", | ||
"armv7-apple-ios12.0", "foo.swift"])) { error in |
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.
Should we test a version without the -c
where there's no error?
2615e52
to
3cd581b
Compare
@swift-ci please test |
4469731
to
1fe3ec5
Compare
@swift-ci please test |
return "iOS \(version) does not support 32-bit programs" | ||
case .invalidDeploymentTargetForIR(let target): | ||
return | ||
"\(target) and above does not support emitting binaries or IR for 32-bit programs" |
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.
Could we pass through and print the specific architecture name in place of "32-bit" in order to be more generalized?
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.
This is updated to emit "iOS 11 and above does not support emitting binaries or IR for armv7" for armv7-apple-ios12
1fe3ec5
to
93bd0b2
Compare
@swift-ci please test |
This patch loosens the restriction for building deprecated iOS targets to only when the user attempts to compile a binary or emit IR. This allows the compiler to continue building swift modules and interfaces for newer deployment targets. The error message is also slightly modified to allow the same message to apply to different platforms. resolves: <rdar://87898177>
93bd0b2
to
4d847b9
Compare
@swift-ci please test |
This patch loosens the restriction for building deprecated iOS targets
to only when the user attempts to compile a binary or emit IR.
This allows the compiler to continue building swift modules and
interfaces for newer deployment targets.
The error message is also slightly modified to allow the same message to
apply to different platforms.
resolves: rdar://87898177