Skip to content

Commit 69d96fd

Browse files
committed
fix: use of auto with kotlin jvm target
Signed-off-by: Sam Gammon <sam@elide.dev>
1 parent c32bcb3 commit 69d96fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/builder/src/main/kotlin/elide/tooling/jvm/JvmBuildConfigurator.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,10 @@ internal class JvmBuildConfigurator : BuildConfigurator {
638638
}.map { it.path.toFile() }
639639

640640
incrementalCompilation = state.manifest.kotlin?.features?.incremental != false
641-
jvmTarget = effectiveJvmTarget.argValue
641+
jvmTarget = when (val tgt = effectiveJvmTarget.argValue) {
642+
"auto" -> ElidePackageManifest.JvmTarget.DEFAULT.argValue
643+
else -> tgt
644+
}
642645

643646
// handle built-in plugins
644647
if (state.manifest.kotlin?.features?.enableDefaultPlugins != false) {

0 commit comments

Comments
 (0)