org.jetbrains.kotlin.konan.target.ConfigurablesExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-compiler-embeddable Show documentation
Show all versions of kotlin-compiler-embeddable Show documentation
the Kotlin compiler embeddable
package org.jetbrains.kotlin.konan.target
fun ZephyrConfigurables.constructClangArgs(): List = mutableListOf().apply {
targetCpu?.let {
add("-mcpu=$it")
}
targetAbi?.let {
add("-mabi=$it")
}
addAll(boardSpecificClangFlags)
}
fun ZephyrConfigurables.constructClangCC1Args(): List = mutableListOf().apply {
addAll("-cc1 -emit-obj -disable-llvm-optzns -x ir -fdata-sections -ffunction-sections".split(" "))
targetCpu?.let {
addAll(listOf("-target-abi", it))
}
targetAbi?.let {
addAll(listOf("-target-cpu", it))
}
addAll(boardSpecificClangFlags)
}