Vlad Balan
02/13/2020, 1:07 PMkotlin{
linuxArm64()
}
I am interested in creating a custom target for arm64 where I can specify what compiler/linker options I want to use.
Thanks in advance!Dico
02/13/2020, 5:28 PMkotlin {
linuxArm64("arm64") {
... configure all the things
}
}
Vlad Balan
02/17/2020, 7:59 AMlinuxArm64
compiles with the following flags: `
clangFlags.linux_arm64 = -cc1 -target-cpu cortex-a57 -emit-obj -disable-llvm-optzns -x ir
`
These are defined in konan.properties
.
What about if I want to use a different target-cpu
?
I tried to set `
binaries {
executable {
entryPoint = "cairo.main"
freeCompilerArgs += listOf("-target-cpu=cortex-axx")
}
}
but this fails with:
e: Invalid argument: -target-cpu=cortex-axx
Dico
02/17/2020, 11:20 AMfreeCompilerArgs
is for the Kotlin compiler. I don't know whether what you want is supported.Vlad Balan
02/17/2020, 11:35 AM