Skip to content

Commit 0109bdc

Browse files
committed
fix configure
1 parent 6060a2a commit 0109bdc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Samples/SwiftJavaExtractJNISampleApp/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def jextract = tasks.register("jextract", Exec) {
103103
workingDir = layout.projectDirectory
104104
commandLine "swift"
105105
// TODO: -v for debugging build issues...
106-
args("build", "-v") // since Swift targets which need to be jextract-ed have the jextract build plugin, we just need to build
106+
args("build") // since Swift targets which need to be jextract-ed have the jextract build plugin, we just need to build
107107
// If we wanted to execute a specific subcommand, we can like this:
108108
// args("run",/*
109109
// "swift-java", "jextract",

Sources/SwiftJavaTool/Commands/JExtractCommand.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ extension SwiftJava.JExtractCommand {
9595
let writeEmptyFiles = CommandLine.arguments.contains("--write-empty-files") ? true : nil
9696
configure(&config.writeEmptyFiles, overrideWith: writeEmptyFiles)
9797

98-
config.writeEmptyFiles = writeEmptyFiles
9998
configure(&config.unsignedNumbersMode, overrideWith: self.unsignedNumbersMode)
10099
configure(&config.minimumInputAccessLevelMode, overrideWith: self.minimumInputAccessLevelMode)
101100
configure(&config.memoryManagementMode, overrideWith: self.memoryManagementMode)
@@ -134,7 +133,7 @@ extension SwiftJava.JExtractCommand {
134133
}
135134
}
136135

137-
func configure<T>(_ setting: inout T, overrideWith value: T?) {
136+
func configure<T>(_ setting: inout T?, overrideWith value: T?) {
138137
if let value {
139138
setting = value
140139
}

0 commit comments

Comments
 (0)