-
Notifications
You must be signed in to change notification settings - Fork 196
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
[Explicit Modules] Handle re-mapped platform versions when specifying SDK-aligned -clang-target
on Darwin platforms
#1394
[Explicit Modules] Handle re-mapped platform versions when specifying SDK-aligned -clang-target
on Darwin platforms
#1394
Conversation
SDK-aligned `-clang-target` on Darwin platforms Resolves rdar://108288193
@swift-ci test |
} | ||
let plannedJobs = try driver.planBuild() | ||
XCTAssertTrue(plannedJobs.contains { job in | ||
job.commandLine.contains(subsequence: [.flag("-clang-target"), .flag("arm64-apple-macos10.15")]) |
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.
Where does the macos10.15
come from here? Does it always pick the SDK version?
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.
Yes, it comes from the SDKSettings
's:
"Version": "10.15",
"-sdk", sdkRoot.pathString, | ||
main.pathString]) | ||
guard driver.isFrontendArgSupported(.clangTarget) else { | ||
throw XCTSkip("Skipping: compiler does not support '-clang-target'") | ||
} | ||
let plannedJobs = try driver.planBuild() | ||
XCTAssertTrue(plannedJobs.contains { job in | ||
job.commandLine.contains(subsequence: [.flag("-clang-target"), .flag("arm64-apple-ios13.0")]) | ||
job.commandLine.contains(subsequence: [.flag("-clang-target"), .flag("arm64e-apple-ios13.3-macabi")]) |
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.
Similarly here, are we remapping from the SDK version and not from the driver's -target
flag?
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.
For -clang-target
, yes.
First added in #1274.
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.
Ah interesting, thanks for the clarification!
Resolves rdar://108288193