We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e25b00 commit 0af2a2bCopy full SHA for 0af2a2b
plugin/main/src/kotlinx/benchmark/gradle/NativeSourceGeneratorTask.kt
@@ -100,7 +100,8 @@ abstract class NativeSourceGeneratorWorker : WorkAction<NativeSourceGeneratorWor
100
parameters.outputSourcesDir.deleteRecursively()
101
parameters.outputResourcesDir.deleteRecursively()
102
parameters.inputClassesDirs
103
- .filter { it.exists() && it.name.endsWith(KLIB_FILE_EXTENSION_WITH_DOT) }
+ // expect either a packed .klib file or non-packed klib directory
104
+ .filter { it.exists() && it.name.endsWith(KLIB_FILE_EXTENSION_WITH_DOT) || it.isDirectory && it.resolve("default/manifest").isFile }
105
.forEach { lib ->
106
if (parameters.target.isEmpty())
107
throw Exception("nativeTarget should be specified for API generator for native targets")
0 commit comments