Kotlin/kotlinx-cli

Support for mingwX86

shalva97 opened this issue · 5 comments

Hi, when i try to build mingwX86 version it fails with

> Could not resolve all files for configuration ':mingwX86CompileKlibraries'.
...
> No matching variant of org.jetbrains.kotlinx:kotlinx-cli:0.3.5 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'mingw_x86'

Hi. The library doesn't support mingwX86 target at the moment, and we don't have short-term plans to fix this.

I see that you have target mingwX64, is mingwX86 much different?
(Sorry for my ignorance)

mingwX64 and mingwX86 are Windows 64 bit and Windows 32 bit. I dont know technical differences but my hope is that if mingwX86 support is added then the compiled code should also run on Windows XP

I see that you have target mingwX64, is mingwX86 much different?

It is different, to some extent. For example, see https://youtrack.jetbrains.com/issue/KT-36669/Support-mingwX86Test-for-a-Windows-x64-hosts

As a result, it is not possible to run unit tests for the library compiled for mingwX86. Can't test => shouldn't publish (unless we clearly communicate that the library is not tested on this particular target).

I would vote for publish with warning. Perhaps mark it beta?
It would allow users to try it, and give feedback, ie, to test it.

Maybe theres even an argument that testing on mingwX64 tells you something about mingwX86, too.

thanks for considering....