Commit 08de9a22 authored by Manoj Gupta's avatar Manoj Gupta Committed by Commit Bot

Fix Chrome build on Chrome OS chroot.

Fix for the error in CrOS SDK because of the older clang
version that does not support '-debug-info-kind=constructor':
chromeos-chrome-82.0.4061.0_rc-r1: error:
invalid value 'constructor' in '-debug-info-kind=constructor

Bug: 1050118
Change-Id: I5b5b038027c6111ba6501e23e4b46f23f664fae9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062251
Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Auto-Submit: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: default avatarTakuto Ikuta <tikuta@chromium.org>
Reviewed-by: default avatarBen Pastene <bpastene@chromium.org>
Reviewed-by: default avatarFergus Dall <sidereal@google.com>
Cr-Commit-Position: refs/heads/master@{#742471}
parent 279ab5bb
......@@ -2349,8 +2349,10 @@ config("symbols") {
cflags += [ "-g2" ]
}
if (is_clang && !is_nacl && (!is_chromeos || default_toolchain !=
"//build/toolchain/cros:target")) {
# 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") {
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