Hi all, I am currently trying to build a small pr...
# kotlin-native
v
Hi all, I am currently trying to build a small project for arm64. I wanted to ask if it is possible to create a custom target. I mean something different than using:
Copy code
kotlin{
 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!
d
Copy code
kotlin {
    linuxArm64("arm64") {
        ... configure all the things
    }
}
👍 2
v
Thanks for the answer. The target
linuxArm64
compiles with the following flags: `
Copy code
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 `
Copy code
binaries {
 executable {
   entryPoint = "cairo.main"
   freeCompilerArgs += listOf("-target-cpu=cortex-axx")
 }
}
but this fails with:
Copy code
e: Invalid argument: -target-cpu=cortex-axx
d
freeCompilerArgs
is for the Kotlin compiler. I don't know whether what you want is supported.
v