Skip to content

Commit 49c1af7

Browse files
authored
Flip the warning about local swift-java-jni-core use (#598)
We can override jni-core to be used from local dir, only print this when we're overriding, otherwise normal builds are noisy.
1 parent 0e40b51 commit 49c1af7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ let javaPlatformIncludePath = "\(javaIncludePath)/win32"
127127

128128
let swiftJavaJNICoreDep: Package.Dependency
129129
if let localPath = ProcessInfo.processInfo.environment["SWIFT_JAVA_JNI_CORE_PATH"] {
130+
print("Using upstream 'swift-java-jni-core' from override path SWIFT_JAVA_JNI_CORE_PATH = \(localPath)")
130131
swiftJavaJNICoreDep = .package(path: localPath)
131132
} else {
132-
print("Using upstream 'swift-java-jni-core', to override use the SWIFT_JAVA_JNI_CORE_PATH env variable")
133133
swiftJavaJNICoreDep = .package(url: "https://github.com/swiftlang/swift-java-jni-core", branch: "main")
134134
}
135135

0 commit comments

Comments
 (0)