All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.konan.target.ConfigurablesExtensions.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0-RC
Show newest version
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