Skip to content

Commit eb92776

Browse files
committed
[cinterop] fix spaces in paths leading to build errors
1 parent 761aa97 commit eb92776

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/SwiftKlibPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SwiftKlibPlugin : Plugin<Project> {
5656
val task = tasks.withType(CompileSwiftTask::class.java).findByName(taskName)
5757
?: return@configureEach
5858

59-
cinterop.settings.defFile = task.defFile
59+
cinterop.settings.definitionFile.set(task.defFile)
6060
cinterop.dependsOn(task)
6161
}
6262
}

plugin/src/main/kotlin/io/github/ttypic/swiftklib/gradle/task/CompileSwiftTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ abstract class CompileSwiftTask @Inject constructor(
238238
239239
# md5 ${libPath.md5()}
240240
staticLibraries = ${libPath.name}
241-
libraryPaths = ${libPath.parentFile.absolutePath}
241+
libraryPaths = "${libPath.parentFile.absolutePath}"
242242
243-
compilerOpts = -fmodules -I$modulePath
243+
compilerOpts = -fmodules -I"$modulePath"
244244
linkerOpts = $linkerOpts
245245
""".trimIndent()
246246

0 commit comments

Comments
 (0)