Fixed only adding -Xdebug if debugger is attached

This commit is contained in:
dankito 2024-10-15 02:28:04 +02:00
parent ab0b676216
commit c39789dfde
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ kotlin {
compilerOptions {
// suppresses compiler warning: [EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING] 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta.
freeCompilerArgs.add("-Xexpect-actual-classes")
if (System.getProperty("idea.debugger.dispatch.addr") != null) {
freeCompilerArgs.add("-Xdebug")
}
}