diff --git a/build.gradle.kts b/build.gradle.kts index db224970c76..2b125978f5a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -460,6 +460,7 @@ allprojects { val commonCompilerArgs = listOfNotNull( "-opt-in=kotlin.RequiresOptIn", + "-Xklib-relative-path-base=$rootDir".takeIf { !kotlinBuildProperties.getBoolean("kotlin.build.use.absolute.paths.in.klib") }, "-progressive".takeIf { hasProperty("test.progressive.mode") } )