gradle / gradle-native

The home of Gradle's support for natively compiled languages
https://blog.gradle.org/introducing-the-new-cpp-plugins
Apache License 2.0
92 stars 8 forks source link

Built in support for cygwin multi-architecture compilation #968

Open ghale opened 5 years ago

ghale commented 5 years ago

Gradle can currently use cygwin64 as the toolchain to build 64-bit binaries and (with the right configuration) can use cygwin64 to build 32-bit binaries. This currently requires some manipulation of the toolchain to get it to work, but we should be able to detect the 32-bit support (if installed) and configure it implicitly when found.

See https://github.com/gradle/gradle/pull/8111 for the changes to detect and configure the toolchain for our test infrastructure.

big-guy commented 5 years ago

We can find cygwin64 and GCC tool chain says it supports 32 and 64-bit, even when it can't.

Cygwin64 needs additional packages installed to support 32-bit