From 3b540a102d224cdf526a7edab0152682987ac4f6 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 20 Aug 2020 20:24:08 +0800 Subject: [PATCH] Set -Xjvm-default=enable --- backend/mirai-console/build.gradle.kts | 2 +- frontend/mirai-console-pure/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/mirai-console/build.gradle.kts b/backend/mirai-console/build.gradle.kts index 5db5a8d7f..ce210caa3 100644 --- a/backend/mirai-console/build.gradle.kts +++ b/backend/mirai-console/build.gradle.kts @@ -33,7 +33,7 @@ kotlin { target.compilations.all { kotlinOptions { jvmTarget = "1.8" - freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all" + freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=enable" //useIR = true } } diff --git a/frontend/mirai-console-pure/build.gradle.kts b/frontend/mirai-console-pure/build.gradle.kts index ec1b8cfed..5886499c8 100644 --- a/frontend/mirai-console-pure/build.gradle.kts +++ b/frontend/mirai-console-pure/build.gradle.kts @@ -10,7 +10,7 @@ kotlin { target.compilations.all { kotlinOptions { jvmTarget = "1.8" - freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all" + freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=enable" } }