[Commonizer] Prettier message about target with no libraries inside

This commit is contained in:
Dmitriy Dolovov
2021-02-03 15:58:35 +03:00
parent 73113c1041
commit 52e22796e1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ There are few limitations in the current version of KLIB Commonizer:
``` ```
Kotlin KLIB commonizer: Please wait while preparing libraries. Kotlin KLIB commonizer: Please wait while preparing libraries.
[Step 1 of 1] Preparing commonized Kotlin/Native libraries for targets [macos_x64, linux_x64, mingw_x64] (137 items) [Step 1 of 1] Preparing commonized Kotlin/Native libraries for targets [macos_x64, linux_x64, mingw_x64] (137 items)
Warning: No platform libraries found for target mingw_x64. This target will be excluded from commonization. Warning: No platform libraries found for target [mingw_x64]. This target will be excluded from commonization.
... ...
``` ```
In the degenerate case when all but one targets are not available at the host machine, the KLIB Commonizer is not launched. In the degenerate case when all but one targets are not available at the host machine, the KLIB Commonizer is not launched.
@@ -82,7 +82,7 @@ class NativeDistributionCommonizer(
.orEmpty() .orEmpty()
if (platformLibs.isEmpty()) if (platformLibs.isEmpty())
logger.warning("No platform libraries found for target $target. This target will be excluded from commonization.") logger.warning("No platform libraries found for target ${leafTarget.prettyName}. This target will be excluded from commonization.")
leafTarget to NativeLibrariesToCommonize(platformLibs) leafTarget to NativeLibrariesToCommonize(platformLibs)
} }