is this the correct way to define multiple targets? if so, how do i run gradle to compile for both platforms? there is an error when i run
gradle nativeBinaries
: The target 'native' already exists, but it was not created with the 'mingwX64' preset. To configure it, access it by name in
kotlin.targets
or use the preset function 'linuxX64'.
v
Vampire
06/15/2022, 7:22 AM
I have no idea about Kotlin native, but interpreting the error message, you cannot name both
native
, so pick unique names.
e
ephemient
06/15/2022, 8:49 AM
correct, multiple targets cannot have the same name. unless you have multiple targets of the same type, I would leave the name out completely; it'll use the default names, same as
linuxX64("linuxX64")
and
mingwX64("mingwX64")
.
c
cheeze2000
06/15/2022, 8:53 AM
thank you, so if i want to compile for linux, what gradle command should i run?