serebit
08/02/2020, 3:19 AMBig Chungus
08/02/2020, 5:53 AMSebastian Sellmair [JB]
08/02/2020, 4:20 PMBig Chungus
08/02/2020, 4:21 PMserebit
08/02/2020, 4:21 PMserebit
08/02/2020, 4:57 PMlinuxMain
, linux64BitMain
, and linux32BitMain
.Sebastian Sellmair [JB]
08/02/2020, 6:02 PMSebastian Sellmair [JB]
08/02/2020, 6:02 PMserebit
08/03/2020, 4:08 PMSebastian Sellmair [JB]
08/04/2020, 8:54 AMSebastian Sellmair [JB]
08/04/2020, 11:58 AMkotlin.native.enableDependencyPropagation=false
to your gradle.properties to enable commonizer
• HMPP with commonizer is currently limited to 3 levels (KT-399324). So using commonizer with intermedate source sets like commonMain -> linuxMain -> linux64BitMain -> ... will not work for now (but is actively worked on)
• It seems like platforms like linuxArm32Hfp
and linuxMipsel32
lead to "pretty conservative" commonizing with linuxX64
and linuxArm64
. (This part requires a little more investigation)serebit
08/04/2020, 12:39 PMfread
function in posix takes a ULong parameter on 64-bit platforms, but a UInt on 32-bit platforms, which is why I had to create the LinuxXXBitMain source sets in the first place.serebit
08/04/2020, 1:20 PMlouiscad
08/04/2020, 1:24 PMexpect
declaration with matching actual
declarations. In other words, common and intermediate source sets are seen as platform source sets for the compiler (at least for now).serebit
08/04/2020, 2:28 PMInt
and Long
, depending on the bit size of the platform. I guess one potential solution to this would be union types, or relaxing the type restrictions for these cases in common source sets, but I can't imagine it would be an easy thing to program.serebit
08/04/2020, 2:30 PMserebit
08/04/2020, 2:30 PMserebit
08/04/2020, 4:50 PMserebit
08/04/2020, 4:52 PMserebit
08/04/2020, 7:42 PM