Quote module name in the generated modulemap

This fixes an issue where Kotlin projects named "umbrella" or
"framework" produce unimportable framework modules.

^KT-66565
This commit is contained in:
Timofey Solonin
2024-03-13 19:48:01 +01:00
committed by Space Team
parent 4ab5c3b74b
commit 9295f44eda
6 changed files with 25 additions and 5 deletions
@@ -12,7 +12,7 @@ package org.jetbrains.kotlin.backend.konan.objcexport
*/
class ModuleMapBuilder {
fun build(frameworkName: String, moduleDependencies: Set<String>): String = buildString {
appendLine("framework module $frameworkName {")
appendLine("framework module \"$frameworkName\" {")
appendLine(" umbrella header \"$frameworkName.h\"")
appendLine()
appendLine(" export *")