[Wasm, JS] Add a warning that dumping reachability and size infos to file is supported only for Kotlin/Wasm

This commit is contained in:
Zalim Bashorov
2023-04-24 21:20:35 +02:00
parent 0a1116376c
commit 4e36f5b391
@@ -376,6 +376,13 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
)
return OK
} else {
if (arguments.irDceDumpReachabilityInfoToFile != null) {
messageCollector.report(STRONG_WARNING, "Dumping the reachability info to file is supported only for Kotlin/Wasm.")
}
if (arguments.irDceDumpDeclarationIrSizesToFile != null) {
messageCollector.report(STRONG_WARNING, "Dumping the size of declarations to file is supported only for Kotlin/Wasm.")
}
}
val start = System.currentTimeMillis()