Skip to content

Commit 466a891

Browse files
committed
update comment
1 parent 36a3fcc commit 466a891

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build-plugins/kmp-conventions/src/main/kotlin/aws/sdk/kotlin/gradle/kmp/ConfigureTargets.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ fun Project.configureKmpTargets() {
115115
kmpExt.apply { configureWindows() }
116116
}
117117
if ((hasLinux || hasDesktop) && HostManager.hostIsLinux) {
118-
kmpExt.apply { configureLinux() }
118+
if (group == "aws.sdk.kotlin.crt") {
119+
kmpExt.apply { configureLinux() }
120+
} else {
121+
kmpExt.apply { configureDummyLinux() }
122+
}
119123
}
120124
}
121125

@@ -165,7 +169,7 @@ fun Project.configureLinux() {
165169
}
166170

167171
/**
168-
* Dummy configuration for Linux which declares but does not actually configure any targets.
172+
* Dummy configuration for projects which need to declare Linux but not actually use them.
169173
* This is useful for projects that do not have any native targets but still need to be a KMP build (Dokka in particular).
170174
*/
171175
fun Project.configureDummyLinux() {

0 commit comments

Comments
 (0)