-
Notifications
You must be signed in to change notification settings - Fork 204
Get Android to parity with upstream driver and enable remaining tests #720
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
@@ -1808,6 +1808,31 @@ final class SwiftDriverTests: XCTestCase { | |||
} | |||
#endif |
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.
These linux tests above are disabled on linux, mistake or deliberate decision?
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.
It looks like they are enabled, only on Linux?
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.
See the enclosing #if os(macOS)
conditional compile at the top of this 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.
Oh I see. Hmm :/
@@ -105,6 +105,7 @@ import TSCBasic | |||
targetTriple: Triple, | |||
isShared: Bool | |||
) throws -> String { | |||
return "libclang_rt.\(sanitizer.libraryName)-\(targetTriple.archName).a" | |||
let environment = (targetTriple.environment == .android) ? "-android" : "" | |||
return "libclang_rt.\(sanitizer.libraryName)-\(targetTriple.archName)\(environment).a" |
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 a port of my earlier patch for the C++ driver.
I think this just needs to run through the CI and it can be merged? |
@swift-ci please test |
This is the only remaining Android difference with the C++ driver. The new test was tested natively on Android with my Swift 5.4.1 toolchain package in the Termux app, all tests passed.