[K/N] Suppress warnings of dsymutil in runtime tests
This commit is contained in:
committed by
TeamCityServer
parent
54cdf732b4
commit
428a15397e
+9
@@ -16,6 +16,7 @@ import org.jetbrains.kotlin.ExecClang
|
|||||||
import org.jetbrains.kotlin.bitcode.CompileToBitcode
|
import org.jetbrains.kotlin.bitcode.CompileToBitcode
|
||||||
import org.jetbrains.kotlin.bitcode.CompileToBitcodeExtension
|
import org.jetbrains.kotlin.bitcode.CompileToBitcodeExtension
|
||||||
import org.jetbrains.kotlin.konan.target.*
|
import org.jetbrains.kotlin.konan.target.*
|
||||||
|
import java.io.OutputStream
|
||||||
|
|
||||||
open class CompileNativeTest @Inject constructor(
|
open class CompileNativeTest @Inject constructor(
|
||||||
@InputFile val inputFile: File,
|
@InputFile val inputFile: File,
|
||||||
@@ -174,6 +175,14 @@ open class LinkNativeTest @Inject constructor(
|
|||||||
for (command in commands) {
|
for (command in commands) {
|
||||||
project.exec {
|
project.exec {
|
||||||
commandLine(command)
|
commandLine(command)
|
||||||
|
if (!logger.isInfoEnabled() && command[0].endsWith("dsymutil")) {
|
||||||
|
// Suppress dsymutl's warnings.
|
||||||
|
// See: https://bugs.swift.org/browse/SR-11539.
|
||||||
|
val nullOutputStream = object: OutputStream() {
|
||||||
|
override fun write(b: Int) {}
|
||||||
|
}
|
||||||
|
errorOutput = nullOutputStream
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user