From eb546898017c34f2fb12d264bc76b92edbf049e7 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Wed, 3 Mar 2021 13:54:55 +0700 Subject: [PATCH] Update coverage sample documentation. We need to invoke `llvm-profdata` tool from the same toolchain as Clang (on macOS we use the one from Xcode). (cherry picked from commit 91665b36af68b7fb3a56c0e7ed7ebb7d819adfb2) --- kotlin-native/samples/coverage/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kotlin-native/samples/coverage/README.md b/kotlin-native/samples/coverage/README.md index 25155d97f49..f9c97dc6b17 100644 --- a/kotlin-native/samples/coverage/README.md +++ b/kotlin-native/samples/coverage/README.md @@ -4,9 +4,8 @@ This example shows how to collect coverage information during execution of the t Please note that this functionality will be incorporated into Gradle plugin so you won't need to do it by hand in the nearest future. ### Prerequisites -`createCoverageReport` task requires `llvm-profdata` and `llvm-cov` to be added to the `$PATH`. -They can be found in the Kotlin/Native dependencies dir. By default it should look like -`$HOME/.konan/dependencies/clang-llvm-6.0.1-darwin-macos/bin` - +`createCoverageReport` task requires `llvm-profdata` and `llvm-cov` to be added to the `$PATH`. +In case of macOS, use tools from Xcode (`/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin`). +For Windows and Linux, use the ones from Kotlin/Native LLVM distribution (e.g. `$HOME/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin`). ### Usage Just run `createCoverageReport` task.