[Coverage] Fix documentation and build error message

Fix documentation and build error message regarding
is_component_build flag.

Change-Id: I393ce3b376e30f4fbbabfea332b77728b5344d5a
Reviewed-on: https://chromium-review.googlesource.com/917223
Reviewed-by: Jonathan Metzman <metzman@chromium.org>
Reviewed-by: Abhishek Arya <inferno@chromium.org>
Commit-Queue: Abhishek Arya <inferno@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#537953}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ab9c44ebfebc2a832ad119a23a466fa7b82040bf
This commit is contained in:
Yuke Liao 2018-02-21 00:24:40 +00:00 коммит произвёл Commit Bot
Родитель 647865cf89
Коммит b73ec3eda4
1 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -16,11 +16,10 @@ declare_args() {
assert(!use_clang_coverage || is_clang,
"Clang Source-based Code Coverage requires clang.")
assert(!(use_clang_coverage && is_debug && is_component_build),
"If use_clang_coverage is true and is_debug is true (is_debug " +
"defaults to true), then is_component_build must be false.$0x0A" +
"Try adding is_component_build=false to your GN args.")
assert(
!(use_clang_coverage && is_component_build),
"Clang Source-based Code Coverage is incompatible with is_component_build.")
"Clang Source-based Code Coverage requires \"is_component_build=false\" " +
"flag because: There will be no coverage info for libraries in " +
"component builds and \"is_component_build\" is set to true by " +
"\"is_debug\" unless it is explicitly set to false.$0x0ATry adding " +
"\"is_component_build=false\" to your GN args.")