Skip to content

Commit 64c69d7

Browse files
committed
try debugging JNI on CI
1 parent 3b87d8f commit 64c69d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Samples/JavaKitSampleApp/Sources/JavaKitExample/com/example/swift/HelloSwift.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class HelloSwift {
2222
public String name = "Java";
2323

2424
static {
25+
System.loadLibrary("swiftCore");
2526
System.loadLibrary("JavaKitExample");
2627
}
2728

Samples/JavaKitSampleApp/ci-validate.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -x
55

66
swift build
77
"$JAVA_HOME/bin/java" \
8+
-verbose:jni \
89
-cp .build/plugins/outputs/javakitsampleapp/JavaKitExample/destination/JavaCompilerPlugin/Java \
910
-Djava.library.path=.build/debug \
1011
"com.example.swift.JavaKitSampleMain"

0 commit comments

Comments
 (0)