void-packages/srcpkgs/chromium/patches/llvm-remove-unsupported-compiler-warnings.patch
Peter Bui f8939f62ba chromium: update to 80.0.3987.116.
[ci skip]

- Builds for x86_64, x86_64-musl

- Fails for i686 (std::bad_alloc), mark as broken

- Remove jumbo_build option as upstream has deprecated it:

    https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
2020-02-21 21:29:11 +01:00

45 lines
1.8 KiB
Diff

--- build/config/compiler/BUILD.gn.orig 2020-02-03 20:56:08.000000000 -0500
+++ build/config/compiler/BUILD.gn 2020-02-06 09:48:23.578421089 -0500
@@ -708,14 +708,6 @@
ldflags += [ "-Wl,--no-rosegment" ]
}
- # This flag enforces that member pointer base types are complete. It helps
- # prevent us from running into problems in the Microsoft C++ ABI (see
- # https://crbug.com/847724).
- if (is_clang && !is_nacl && target_os != "chromeos" && !use_xcode_clang &&
- (is_win || use_custom_libcxx)) {
- cflags += [ "-fcomplete-member-pointers" ]
- }
-
# Pass the same C/C++ flags to the objective C/C++ compiler.
cflags_objc += cflags_c
cflags_objcc += cflags_cc
@@ -1516,27 +1508,6 @@
if (current_toolchain == host_toolchain || !use_xcode_clang) {
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
# recognize.
- cflags += [
- # Ignore warnings about MSVC optimization pragmas.
- # TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
- "-Wno-ignored-pragma-optimize",
-
- # TODO(https://crbug.com/989932): Evaluate and possibly enable.
- "-Wno-implicit-int-float-conversion",
-
- # TODO(https://crbug.com/999886): Clean up, enable.
- "-Wno-final-dtor-non-final-class",
-
- # TODO(https://crbug.com/1016947) Clean up, enable.
- "-Wno-bitwise-conditional-parentheses",
-
- # TODO(https://crbug.com/1016945) Clean up, enable.
- "-Wno-builtin-assume-aligned-alignment",
-
- # TODO(https://crbug.com/1028110): Evaluate and possible enable.
- "-Wno-deprecated-copy",
- ]
-
if (is_fuchsia) {
cflags += [
# TODO(https://crbug.com/999871): Clean up, enable.