From 4e36f5b3913de73aa00471c406eaa2d98fd892bb Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Mon, 24 Apr 2023 21:20:35 +0200 Subject: [PATCH] [Wasm, JS] Add a warning that dumping reachability and size infos to file is supported only for Kotlin/Wasm --- .../src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt index b8072a7f8db..65a2842aa0a 100644 --- a/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt +++ b/compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt @@ -376,6 +376,13 @@ class K2JsIrCompiler : CLICompiler() { ) 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()