Fixed only adding -Xdebug if debugger is attached
This commit is contained in:
parent
ab0b676216
commit
c39789dfde
|
@ -13,6 +13,10 @@ kotlin {
|
||||||
compilerOptions {
|
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.
|
// 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")
|
freeCompilerArgs.add("-Xexpect-actual-classes")
|
||||||
|
|
||||||
|
if (System.getProperty("idea.debugger.dispatch.addr") != null) {
|
||||||
|
freeCompilerArgs.add("-Xdebug")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue