swiftlang / swift-driver

Swift compiler driver reimplementation in Swift
Apache License 2.0
795 stars 192 forks source link

Reinstate: SwiftDriver: initial work to properly handle android cross-compilation #1667

Closed hyp closed 2 months ago

hyp commented 2 months ago

This PR reinstates https://github.com/swiftlang/swift-driver/pull/1560, after it was reverted in https://github.com/swiftlang/swift-driver/pull/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.

hyp commented 2 months ago

@swift-ci please test

hyp commented 2 months ago

@swift-ci please test

compnerd commented 2 months ago

@swift-ci please test Windows platform