Skip to content

Commit f9c84cb

Browse files
authored
Use BuildUtils.javaLibraryPaths in SwiftKit build. (#91)
1 parent c57088c commit f9c84cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Samples/SwiftKitSampleApp/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15+
import org.swift.swiftkit.gradle.BuildUtils
16+
1517
plugins {
1618
id("build-logic.java-application-conventions")
1719
}
@@ -82,10 +84,7 @@ application {
8284
"--enable-native-access=ALL-UNNAMED",
8385

8486
// Include the library paths where our dylibs are that we want to load and call
85-
"-Djava.library.path=" + [
86-
"$rootDir/.build/arm64-apple-macosx/debug/",
87-
"/usr/lib/swift/"
88-
].join(":"),
87+
"-Djava.library.path=" + BuildUtils.javaLibraryPaths().join(":"),
8988

9089
// Enable tracing downcalls (to Swift)
9190
"-Djextract.trace.downcalls=true"

0 commit comments

Comments
 (0)