kotlinx-cli icon indicating copy to clipboard operation
kotlinx-cli copied to clipboard

Support for mingwX86

Open shalva97 opened this issue 2 years ago • 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'

shalva97 avatar Jul 24 '22 11:07 shalva97

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

SvyatoslavScherbina avatar Jul 26 '22 15:07 SvyatoslavScherbina

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

JohnLCaron avatar Aug 29 '22 19:08 JohnLCaron

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

shalva97 avatar Aug 30 '22 08:08 shalva97

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).

SvyatoslavScherbina avatar Aug 30 '22 15:08 SvyatoslavScherbina

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....

JohnLCaron avatar Aug 30 '22 15:08 JohnLCaron