-
Notifications
You must be signed in to change notification settings - Fork 199
Reinstate: SwiftDriver: initial work to properly handle android cross-compilation #1667
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
@swift-ci please test |
Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift
Outdated
Show resolved
Hide resolved
@swift-ci please test |
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.
I think this pull is ill-considered and should not be merged.
let rsrc: VirtualPath | ||
// Prefer the swiftrt.o runtime file from the SDK if it's specified. | ||
if let sdk = targetInfo.sdkPath { | ||
rsrc = VirtualPath.lookup(sdk.path).appending(components: "usr", "lib", "swift") |
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.
Just like with swiftlang/swift#74696, this is going to break builds.
@swift-ci please test Windows platform |
This PR reinstates #1560, after it was reverted in #1662.
The revert happened because of a unit test failure in the
SwiftDriverTests.SwiftDriverTests testRelativeResourceDir
test. This PR fixes this test failure by ensuring that SDKROOT is reset before the test is run, and creates a sibling test that reflects the new behavior.