From 015fcb84028945301e1694fd769bde430f7005bc Mon Sep 17 00:00:00 2001 From: Tadeas Kriz Date: Sat, 23 Dec 2023 11:13:09 -0500 Subject: [PATCH] Add Swift file path escapes in filelist to support file paths with spaces. --- SKIE/acceptance-tests | 2 +- .../kotlin/co/touchlab/skie/phases/swift/CompileSwiftPhase.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SKIE/acceptance-tests b/SKIE/acceptance-tests index b041700e..28513e22 160000 --- a/SKIE/acceptance-tests +++ b/SKIE/acceptance-tests @@ -1 +1 @@ -Subproject commit b041700e73f125ec18d376fa3745daea0cead681 +Subproject commit 28513e2285b52bff1231a5cd945aa4aa896f0342 diff --git a/SKIE/compiler/kotlin-plugin/src/kgp_common/kotlin/co/touchlab/skie/phases/swift/CompileSwiftPhase.kt b/SKIE/compiler/kotlin-plugin/src/kgp_common/kotlin/co/touchlab/skie/phases/swift/CompileSwiftPhase.kt index 70d5d91f..008be130 100644 --- a/SKIE/compiler/kotlin-plugin/src/kgp_common/kotlin/co/touchlab/skie/phases/swift/CompileSwiftPhase.kt +++ b/SKIE/compiler/kotlin-plugin/src/kgp_common/kotlin/co/touchlab/skie/phases/swift/CompileSwiftPhase.kt @@ -52,7 +52,7 @@ class CompileSwiftPhase( } private fun createSwiftFileList(sourceFiles: List) { - val content = sourceFiles.joinToString("\n") { it.absolutePath } + val content = sourceFiles.joinToString("\n") { "'${it.absolutePath}'" } swiftFileList.writeText(content) }