Skip to content

Android: switch to the new swift-toolchain-sqlite package instead of requiring an external dependency #8148

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

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

finagolfin
Copy link
Member

I've been building with this patch both natively on Android and on my Android CI, confirming that it got rid of the external dependency on libsqlite3.so and works well.

@jakepetroules, along with your recent llbuild pull, this gets rid of the external SQLite3 dependency for the Android toolchain except for one llbuild executable, swift-build-tool, whose build is configured by CMake and appears to be unused, so we can clean that up last.

@@ -76,7 +76,10 @@ let includeDynamicLibrary: Bool = false
let systemSQLitePkgConfig: String? = nil
#else
let includeDynamicLibrary: Bool = true
let systemSQLitePkgConfig: String? = "sqlite3"
var systemSQLitePkgConfig: String? = "sqlite3"
if ProcessInfo.processInfo.environment["SWIFTCI_INSTALL_RPATH_OS"] == "android" {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only set by the official build-script, so it will only work in that scenario, which is fine as most builds of this repo happen that way.

Eventually, systemLibrary dependencies should be conditional on the platform, but that is not available yet.

@finagolfin
Copy link
Member Author

@MaxDesiatov, need a CI run here.

@plemarquand
Copy link
Contributor

@swift-ci test

@finagolfin
Copy link
Member Author

Passed CI as expected, ready for merge.

@plemarquand plemarquand merged commit d0d4ecb into swiftlang:main Dec 3, 2024
5 checks passed
@finagolfin
Copy link
Member Author

@jakepetroules, thanks for the quick review, would you be okay with getting this small patch into 6.1 next? It would allow me to retire it from my downstream patches.

@dschaefer2
Copy link
Member

For SwiftPM, main is currently auto merged to 6.1 until Dec 20'th. No manual effort necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants