2018-01-25 13:45:43 +00:00
|
|
|
--- a/build/config/compiler/BUILD.gn
|
|
|
|
+++ b/build/config/compiler/BUILD.gn
|
|
|
|
@@ -422,18 +422,6 @@
|
2017-12-07 13:59:03 +00:00
|
|
|
cflags += [ "-fcolor-diagnostics" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
- # TODO(hans): Remove this once Clang generates better optimized debug info by
|
|
|
|
- # default. https://crbug.com/765793
|
|
|
|
- if (is_clang && !is_nacl && current_toolchain == host_toolchain &&
|
|
|
|
- target_os != "chromeos") {
|
|
|
|
- cflags += [
|
|
|
|
- "-Xclang",
|
|
|
|
- "-mllvm",
|
|
|
|
- "-Xclang",
|
2018-01-25 13:45:43 +00:00
|
|
|
- "-instcombine-lower-dbg-declare=0",
|
2017-12-07 13:59:03 +00:00
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
# Print absolute paths in diagnostics. There is no precedent for doing this
|
|
|
|
# on Linux/Mac (GCC doesn't support it), but MSVC does this with /FC and
|
|
|
|
# Windows developers rely on it (crbug.com/636109) so only do this on Windows.
|