Skip to content

Commit 748961d

Browse files
authored
Correct "running in ... mode" message
This takes into account the settings file, so we should use the configured mode. Noticed when we printed "ffm mode" while we were actually in JNI mode
1 parent e187ad6 commit 748961d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftJavaTool/Commands/JExtractCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ extension SwiftJava.JExtractCommand {
103103
config.inputSwiftDirectory = "\(FileManager.default.currentDirectoryPath)/Sources/\(swiftModule)"
104104
}
105105

106-
print("[debug][swift-java] Running 'swift-java jextract' in mode: " + "\(self.mode)".bold)
106+
print("[debug][swift-java] Running 'swift-java jextract' in mode: " + "\(config.mode ?? .ffm)".bold)
107107

108108
// Load all of the dependent configurations and associate them with Swift modules.
109109
let dependentConfigs = try loadDependentConfigs(dependsOn: self.dependsOn)

0 commit comments

Comments
 (0)