void-packages/srcpkgs/chromium/patches/fix-build-with-old-clang.patch

21 lines
916 B
Diff
Raw Normal View History

2023-01-11 01:28:40 +01:00
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -805,17 +805,6 @@
cflags += [ "-fcomplete-member-pointers" ]
}
- # Use DWARF simple template names, with the following exceptions:
- #
- # * Windows is not supported as it doesn't use DWARF.
- # * Apple platforms (e.g. MacOS, iPhone, iPad) aren't supported because xcode
- # lldb doesn't have the needed changes yet.
- # * Fuchsia isn't supported as zxdb doesn't support simple template names yet.
- # TODO(crbug.com/1379070): Remove if the upstream default ever changes.
- if (is_clang && !is_nacl && !is_win && !is_apple && !is_fuchsia) {
- cflags_cc += [ "-gsimple-template-names" ]
- }
-
# MLGO specific flags. These flags enable an ML-based inliner trained on
# Chrome on Android (arm32) with ThinLTO enabled, optimizing for size.
# The "release" ML model is embedded into clang as part of its build.