K2/Native: use language version 2.0 instead of -Xuse-k2 in tests
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ internal class NativeTestGroupingMessageCollector(
|
||||
private const val PRE_RELEASE_WARNING_PREFIX = "Following manually enabled features will force generation of pre-release binaries: "
|
||||
private const val UNSAFE_COMPILER_ARGS_WARNING_PREFIX = "ATTENTION!\nThis build uses unsafe internal compiler arguments:\n\n"
|
||||
private const val LIBRARY_INCLUDED_MORE_THAN_ONCE_WARNING_PREFIX = "library included more than once: "
|
||||
private const val K2_NATIVE_EXPERIMENTAL_WARNING_PREFIX = "New compiler pipeline K2 is experimental in Kotlin/Native."
|
||||
private const val K2_NATIVE_EXPERIMENTAL_WARNING_PREFIX = "Language version 2.0 is experimental"
|
||||
private val PARTIAL_LINKAGE_WARNING_REGEX = Regex(".+ uses unlinked symbols(:.*)?")
|
||||
|
||||
private fun parseLanguageFeatureArg(arg: String): String? =
|
||||
|
||||
+1
-1
@@ -143,7 +143,7 @@ internal abstract class SourceBasedCompilation<A : TestCompilationArtifact>(
|
||||
sanitizer.compilerFlag?.let { compilerFlag -> add(compilerFlag) }
|
||||
gcType.compilerFlag?.let { compilerFlag -> add(compilerFlag) }
|
||||
gcScheduler.compilerFlag?.let { compilerFlag -> add(compilerFlag) }
|
||||
pipelineType.compilerFlag?.let { compilerFlag -> add(compilerFlag) }
|
||||
pipelineType.compilerFlags.forEach { compilerFlag -> add(compilerFlag) }
|
||||
}
|
||||
|
||||
override fun applyDependencies(argsBuilder: ArgsBuilder): Unit = with(argsBuilder) {
|
||||
|
||||
+4
-4
@@ -239,9 +239,9 @@ internal sealed interface CacheMode {
|
||||
}
|
||||
}
|
||||
|
||||
internal enum class PipelineType(val compilerFlag: String?) {
|
||||
K1(null),
|
||||
K2("-Xuse-k2");
|
||||
internal enum class PipelineType(val compilerFlags: List<String>) {
|
||||
K1(emptyList()),
|
||||
K2(listOf("-language-version", "2.0"));
|
||||
|
||||
override fun toString() = compilerFlag?.let { "($it)" }.orEmpty()
|
||||
override fun toString() = if (compilerFlags.isEmpty()) "" else compilerFlags.joinToString(prefix = "(", postfix = ")", separator = " ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user