[Commonizer] Prettier message about target with no libraries inside
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user