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
91 stars 8 forks source link

`TargetMachineFactory` should be scope per component to remove invalid target by default #1034

Open lacasseio opened 4 years ago

lacasseio commented 4 years ago

Expected Behavior

When declaring target machines for Swift components, it should not be possible to declare a target machine for Windows OS or event the x86 architecture.

Current Behavior

It is possible to declare Windows target or even a Linux x86 target both of which are invalid target.

lacasseio commented 4 years ago

Also, the default for machines.linux or machines.macOS for Swift component should always default to x86_64 architecture.