diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/LinkStage.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/LinkStage.kt index f604a72dc1f..d3c1ca31dfb 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/LinkStage.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/LinkStage.kt @@ -305,6 +305,7 @@ internal class LinkStage(val context: Context) { try { runTool(*linkCommand.toTypedArray()) } catch (e: KonanExternalToolFailure) { + context.reportCompilationError("linker invocation reported errors") return null } if (platform is MacOSBasedPlatform && context.shouldContainDebugInfo()) {