From 3ee8aabe4cbae7ddc5175e85a440a9ae42677465 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Wed, 6 Apr 2022 19:15:05 +0300 Subject: [PATCH] Add root project dir as a base path in -Xklib-relative-path-base Previous code didn't work for kotlin-stdlib-wasm because sources from other gradle projects are included. `$rootDir/libraries/stdlib/native-wasm/src/*` sources were present in files.knf as absolute paths. Now they are truncated as libraries/stdlib/native-wasm/src/*. For example: libraries/stdlib/native-wasm/src/kotlin/collections/Collections.kt Should be removed after fixing KT-50876 KTI-729 --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 494ad7a2654..401aceef317 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -496,7 +496,7 @@ allprojects { } val relativePathBaseArg: String? = - "-Xklib-relative-path-base=$buildDir,$projectDir".takeIf { + "-Xklib-relative-path-base=$buildDir,$projectDir,$rootDir".takeIf { !kotlinBuildProperties.getBoolean("kotlin.build.use.absolute.paths.in.klib") }