kpgalligan
02/14/2021, 3:16 PMcompile[source set name]MainKotlinMetadata
. If there isn't an obvious issue and setting I should apply that somebody knows offhand, I'll post a simple example a bit later. I'm thinking if I could just set something that tells gradle to ignore non-native hosts, and config CI to also build with a linux host, I might be able to move forward (CI currently runs mac and windows builds). Thoughts?kpgalligan
02/14/2021, 3:19 PMpthreadMain {
dependsOn nativeCommonMain
}
linuxX64Main {
dependsOn pthreadMain
}
kpgalligan
02/14/2021, 3:19 PMkpgalligan
02/14/2021, 4:09 PMrusshwolf
02/14/2021, 4:13 PMkpgalligan
02/14/2021, 4:13 PMkpgalligan
02/14/2021, 4:34 PMkpgalligan
02/14/2021, 4:35 PMcommonMain > nativeCommonMain > nativeDarwinMain > macosX64Main, iosArm32Main (etc)
. That hierarchy seems to work.kpgalligan
02/14/2021, 4:36 PMcommonMain > nativeCommonMain > nativeLinuxMain > linuxX64Main, linuxArm32HfpMain (etc)
For linux, that's the hierarchy.kpgalligan
02/14/2021, 4:37 PMnativeLinuxMain
it'll work in the IDE and build without 'platform/posix'. The command line locally seems to work with 'platform/posix', but neither IDE or CI builds.kpgalligan
02/14/2021, 4:38 PMkpgalligan
02/14/2021, 4:39 PMkpgalligan
02/14/2021, 4:41 PMkpgalligan
02/14/2021, 5:01 PMcommonMain > nativeDarwinMain > macosX64Main, iosArm32Main (etc)
kpgalligan
02/14/2021, 5:01 PMcommonMain > nativeLinuxMain > linuxX64Main, linuxArm32HfpMain (etc)
kpgalligan
02/14/2021, 5:01 PMkpgalligan
02/14/2021, 5:19 PMArkadii Ivanov
02/14/2021, 6:02 PMArkadii Ivanov
02/14/2021, 6:05 PMkpgalligan
02/14/2021, 6:24 PMSebastian Sellmair [JB]
02/14/2021, 8:39 PMkpgalligan
02/14/2021, 8:46 PMkpgalligan
02/15/2021, 1:09 AMkpgalligan
02/15/2021, 1:09 AMkpgalligan
02/15/2021, 1:11 AMkpgalligan
02/15/2021, 1:11 AMrusshwolf
02/15/2021, 1:12 AMkpgalligan
02/15/2021, 1:13 AMkpgalligan
02/15/2021, 1:13 AMrusshwolf
02/15/2021, 1:14 AMTijl
02/15/2021, 9:29 AMHMPP is still not enabled by default@Sebastian Sellmair [JB] the KMM plugin enables it by default. This is supposed to newbie friendly I assume. Granted, platform dependencies work there at the start.
Sebastian Sellmair [JB]
02/15/2021, 10:03 AMkpgalligan
02/15/2021, 5:19 PM./gradlew build
, it succeeds, even with HMPP enabled. The IDE will find the platform/posix dependency in the darwin source src/nativeDarwinMain/kotlin/co/touchlab/testhelp/concurrency/sleep.kt
, but not Linux (src/nativeLinuxMain/kotlin/co/touchlab/testhelp/concurrency/sleep.kt
), although it'll build Linux. It does seem to skip building linuxMips32
, but IIRC, that's expected. Running gradle on the mac does not build windows, which is expected, and intellij can't find platform/posix on windows which makes sense (src/nativeMingwMain/kotlin/co/touchlab/testhelp/concurrency/sleep.kt). To be clear, what's weird is that the gradle build will fail in CI but not locally, and gradle does work after disabling HMPP in CI. Why it works locally but not on CI is definitely confusing.russhwolf
02/15/2021, 6:31 PMkotlin-dsl
plugin) https://github.com/russhwolf/multiplatform-settings/blob/master/buildSrc/src/main/kotlin/BuildHelpers.kt#L99Sebastian Sellmair [JB]
02/25/2021, 2:43 PMSebastian Sellmair [JB]
02/25/2021, 3:07 PMnative_targets=linux_arm32_hfp linux_mips32 linux_x64
Sebastian Sellmair [JB]
02/25/2021, 3:07 PMSebastian Sellmair [JB]
02/25/2021, 3:28 PMJavier
03/26/2021, 8:32 AMJavier
03/26/2021, 9:48 AMSebastian Sellmair [JB]
03/29/2021, 4:05 PMTijl
03/29/2021, 4:07 PMSebastian Sellmair [JB]
03/29/2021, 4:13 PMJavier
03/29/2021, 5:13 PM