org.jetbrains.kotlin.konan.target.ConfigurablesExtensions.kt Maven / Gradle / Ivy
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)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy