Merge compiler 1.3.50-dev-259 (#2983)

This commit is contained in:
LepilkinaElena
2019-05-17 14:02:01 +03:00
committed by GitHub
parent de0e12a1d3
commit 7c2eab9920
6 changed files with 30 additions and 26 deletions
@@ -255,7 +255,6 @@ internal val dependenciesLowerPhase = SameTypeNamedPhaseWrapper(
name = "LowerLibIR",
description = "Lower library's IR",
prerequisite = emptySet(),
dumperVerifier = EmptyDumperVerifier(),
lower = object : CompilerPhase<Context, IrModuleFragment, IrModuleFragment> {
override fun invoke(phaseConfig: PhaseConfig, phaserState: PhaserState<IrModuleFragment>, context: Context, input: IrModuleFragment): IrModuleFragment {
val files = mutableListOf<IrFile>()
+3 -3
View File
@@ -18,9 +18,9 @@
buildKotlinVersion=1.3.50-dev-44
buildKotlinCompilerRepo=https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_dev_Compiler),number:1.3.50-dev-44,pinned:true/artifacts/content/maven
remoteRoot=konan_tests
kotlinCompilerRepo=https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_dev_Compiler),number:1.3.50-dev-67,branch:default:true,pinned:true/artifacts/content/maven
kotlinVersion=1.3.50-dev-67
testKotlinVersion=1.3.50-dev-67
kotlinCompilerRepo=https://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:(id:Kotlin_dev_Compiler),number:1.3.50-dev-259,branch:default:true,pinned:true/artifacts/content/maven
kotlinVersion=1.3.50-dev-259
testKotlinVersion=1.3.50-dev-259
# See https://teamcity.jetbrains.com/project.html?projectId=Kotlin_KotlinNativeShared&tab=projectOverview
sharedRepo=https://dl.bintray.com/jetbrains/kotlin-native-dependencies
sharedVersion=1.0-dev-57
@@ -10,8 +10,8 @@ import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.tasks.TaskState
import org.gradle.api.execution.TaskExecutionListener
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
import org.jetbrains.kotlin.gradle.plugin.KotlinTargetPreset
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.report.*
import org.jetbrains.report.json.*
import java.nio.file.Paths
@@ -76,8 +76,8 @@ fun getNativeProgramExtension(): String = when {
else -> error("Unknown host")
}
fun getKotlinNativeExecutable(target: KotlinTarget, buildType: String) =
target.compilations.main.getBinary("EXECUTABLE", buildType).toString()
fun getKotlinNativeExecutable(target: KotlinNativeTarget, buildType: String) =
target.binaries.getExecutable("benchmark", buildType).outputFile.getAbsolutePath()
fun getFileSize(filePath: String): Long? {
val file = File(filePath)
@@ -161,7 +161,7 @@ fun sendUploadRequest(url: String, fileName: String, username: String? = null, p
fun createRunTask(
subproject: Project,
name: String,
target: KotlinTarget,
target: KotlinNativeTarget,
configureClosure: Closure<Any>? = null
): Task {
val task = subproject.tasks.create(name, RunKotlinNativeTask::class.java, target)
@@ -9,12 +9,12 @@ import org.gradle.api.Task
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.options.Option
import org.gradle.api.tasks.Input
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import javax.inject.Inject
import java.io.File
open class RunKotlinNativeTask @Inject constructor(
private val curTarget: KotlinTarget
private val curTarget: KotlinNativeTarget
) : DefaultTask() {
var buildType = "RELEASE"
@@ -40,7 +40,7 @@ open class RunKotlinNativeTask @Inject constructor(
override fun configure(configureClosure: Closure<Any>): Task {
val task = super.configure(configureClosure)
this.dependsOn += curTarget.compilations.main.linkTaskName("EXECUTABLE", buildType)
this.dependsOn += curTarget.binaries.getExecutable("benchmark", buildType).linkTaskName
return task
}
@@ -52,7 +52,7 @@ open class RunKotlinNativeTask @Inject constructor(
val filterArgs = filter.splitCommaSeparatedOption("-f")
val filterRegexArgs = filterRegex.splitCommaSeparatedOption("-fr")
project.exec {
it.executable = curTarget.compilations.main.getBinary("EXECUTABLE", buildType).toString()
it.executable = curTarget.binaries.getExecutable("benchmark", buildType).outputFile.getAbsolutePath()
it.args = curArgs + filterArgs + filterRegexArgs
it.environment = curEnvironment
it.workingDir(workingDir)
+16 -13
View File
@@ -47,21 +47,24 @@ kotlin {
}
}
targets {
fromPreset(presets.jvm, 'jvm') {
compilations.all {
tasks[compileKotlinTaskName].kotlinOptions {
jvmTarget = '1.8'
suppressWarnings = true
freeCompilerArgs = (project.hasProperty('compilerArgs') ? compilerArgs.split() : [])
}
jvm() {
compilations.all {
tasks[compileKotlinTaskName].kotlinOptions {
jvmTarget = '1.8'
suppressWarnings = true
freeCompilerArgs = (project.hasProperty('compilerArgs') ? compilerArgs.split() : [])
}
}
}
fromPreset(hostPreset, 'native') {
compilations.main.outputKinds('EXECUTABLE')
compilations.main.extraOpts = (project.hasProperty('compilerArgs') ? compilerArgs.split() : []) + '-opt'
compilations.main.buildTypes = [RELEASE]
targetFromPreset(hostPreset, 'native') {
compilations.main.extraOpts = (project.hasProperty('compilerArgs') ? compilerArgs.split() : []) + '-opt'
binaries {
executable('benchmark', [RELEASE]) {
if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
linkerOpts("-L${getMingwPath()}/lib")
}
}
}
}
}
@@ -70,7 +73,7 @@ MPPTools.addTimeListener(project)
MPPTools.createRunTask(project, 'konanRun', kotlin.targets.native) {
workingDir = project.provider {
kotlin.targets.native.compilations.main.getBinary('EXECUTABLE', buildType).parentFile
kotlin.targets.native.binaries.getExecutable("benchmark", buildType).outputDirectory
}
depends("build")
args("-w", "$nativeWarmup", "-r", "$attempts", "-o", "${buildDir.absolutePath}/${nativeBenchResults}", "-p", "${project.ext.applicationName}::")
+3 -1
View File
@@ -101,7 +101,9 @@ kotlin {
}
fromPreset(presets.mingwX64, 'windows') {
compilations.test.linkerOpts "-L${getMingwPath()}/lib"
binaries.all {
linkerOpts = ["-L${getMingwPath()}/lib"]
}
compilations.main.cinterops {
libcurl {
includeDirs.headerFilterOnly "${getMingwPath()}/include"