Skip to content

Commit

Permalink
Check for Android when modifying building SwiftPM on the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
finagolfin committed Nov 30, 2024
1 parent 5c4689d commit 3493a85
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions swift-android-ci-except-release.patch
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ diff --git a/swiftpm/Package.swift b/swiftpm/Package.swift
index 48cd98431..6eaacae00 100644
--- a/swiftpm/Package.swift
+++ b/swiftpm/Package.swift
@@ -76,7 +76,7 @@ let swiftPMProduct = (
@@ -76,7 +77,10 @@ let includeDynamicLibrary: Bool = false
let systemSQLitePkgConfig: String? = nil
#else
let includeDynamicLibrary: Bool = true
-let systemSQLitePkgConfig: String? = "sqlite3"
+let systemSQLitePkgConfig: String? = nil
+var systemSQLitePkgConfig: String? = "sqlite3"
+if ProcessInfo.processInfo.environment["SWIFTCI_INSTALL_RPATH_OS"] == "android" {
+ systemSQLitePkgConfig = nil
+}
#endif

/** An array of products which have two versions listed: one dynamically linked, the other with the
@@ -199,7 +203,7 @@ let package = Package(
dependencies: [
Expand Down

0 comments on commit 3493a85

Please sign in to comment.