Commit f4e8f161 authored by inglorion's avatar inglorion Committed by Commit Bot

Use -debug-info-kind=constructor on ChromeOS

This uses the new debug info size reduction feature introduced in
https://github.com/llvm/llvm-project/commit/651128f5). This was
previously enabled for other platforms (crrev.com/c/2040441). For
ChromeOS, we needed to upgrade the compiler to get the new
feature. Now that that is done, we can enable the feature for
ChromeOS, too.

Bug: 1050118
Change-Id: Ide359fcb8d1e748bb321927055802bf6ebd7fad2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2067741
Commit-Queue: Bob Haarman <inglorion@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#744100}
parent 131ce699
......@@ -2317,10 +2317,7 @@ config("symbols") {
cflags += [ "-g2" ]
}
# TODO: Remove cros specific logic once cros clang supports
# "-debug-info-kind=constructor" option.
if (is_clang && !is_nacl &&
default_toolchain != "//build/toolchain/cros:target") {
if (is_clang && !is_nacl) {
cflags += [
"-Xclang",
"-debug-info-kind=constructor",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment