Date: Tue, 18 Apr 2023 21:51:49 GMT From: Adriaan de Groot <adridg@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b10f16b4f4cb - main - devel/qt5-webengine: fix build with clang 16 Message-ID: <202304182151.33ILpnHw060866@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by adridg: URL: https://cgit.FreeBSD.org/ports/commit/?id=b10f16b4f4cbaaae6844e468036020b98fc0830b commit b10f16b4f4cbaaae6844e468036020b98fc0830b Author: Eric Camachat <eric@camachat.org> AuthorDate: 2023-04-18 15:34:05 +0000 Commit: Adriaan de Groot <adridg@FreeBSD.org> CommitDate: 2023-04-18 21:51:40 +0000 devel/qt5-webengine: fix build with clang 16 This just suppresses one warning which might otherwise error out with the latest clang. PR: 270458 --- ...rdparty_chromium_build_config_compiler_BUILD.gn | 24 ++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/www/qt5-webengine/files/patch-src_3rdparty_chromium_build_config_compiler_BUILD.gn b/www/qt5-webengine/files/patch-src_3rdparty_chromium_build_config_compiler_BUILD.gn index cecfb1c215e1..34b3afbecbef 100644 --- a/www/qt5-webengine/files/patch-src_3rdparty_chromium_build_config_compiler_BUILD.gn +++ b/www/qt5-webengine/files/patch-src_3rdparty_chromium_build_config_compiler_BUILD.gn @@ -18,7 +18,15 @@ ldflags += [ "-Wl,--fatal-warnings" ] } if (fatal_linker_warnings && is_apple && -@@ -407,7 +407,7 @@ config("compiler") { +@@ -310,6 +310,7 @@ config("compiler") { + + if (use_qt && is_clang) { + cflags += [ ++ "-Wno-enum-constexpr-conversion", + "-Wno-unknown-attributes", + "-Wno-unknown-pragmas", + "-Wno-unknown-warning-option" +@@ -407,7 +408,7 @@ config("compiler") { # Compiler instrumentation can introduce dependencies in DSOs to symbols in # the executable they are loaded into, so they are unresolved at link-time. @@ -27,7 +35,7 @@ ldflags += [ "-Wl,-z,defs", "-Wl,--as-needed", -@@ -795,7 +795,7 @@ config("compiler_cpu_abi") { +@@ -795,7 +796,7 @@ config("compiler_cpu_abi") { cflags += [ "-mtune=$arm_tune" ] } } else if (current_cpu == "arm64") { @@ -36,7 +44,7 @@ cflags += [ "--target=aarch64-linux-gnu" ] ldflags += [ "--target=aarch64-linux-gnu" ] } -@@ -1148,7 +1148,7 @@ config("compiler_deterministic") { +@@ -1148,7 +1149,7 @@ config("compiler_deterministic") { "-Xclang", ".", ] @@ -45,7 +53,7 @@ # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167) asmflags = [ "-Wa,-fdebug-compilation-dir,." ] } -@@ -1550,7 +1550,7 @@ config("default_warnings") { +@@ -1550,7 +1551,7 @@ config("default_warnings") { cflags += [ "-Wno-nonportable-include-path" ] } @@ -54,7 +62,7 @@ # Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not # recognize. cflags += [ -@@ -1724,7 +1724,7 @@ config("no_chromium_code") { +@@ -1724,7 +1725,7 @@ config("no_chromium_code") { # suppressing them individually, we just blanket suppress them here. "-Wno-unused-variable", ] @@ -63,7 +71,7 @@ cflags += [ # TODO(https://crbug.com/1031169): Clean up and enable. "-Wno-misleading-indentation", -@@ -1802,7 +1802,7 @@ config("thin_archive") { +@@ -1802,7 +1803,7 @@ config("thin_archive") { # Mac and iOS use the mac-specific "libtool" command, not ar, which doesn't # have a "thin archive" mode (it does accept -T, but it means truncating # archive names to 16 characters, which is not what we want). @@ -72,7 +80,7 @@ arflags = [ "-T" ] } else if (is_win && use_lld) { arflags = [ "/llvmlibthin" ] -@@ -2343,7 +2343,7 @@ config("symbols") { +@@ -2343,7 +2344,7 @@ config("symbols") { # flag, so we can use use -g1 for pnacl and nacl-clang compiles. # gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang. if (!is_nacl || is_clang) { @@ -81,7 +89,7 @@ } # TODO(https://crbug.com/1050118): Investigate missing debug info on mac. -@@ -2385,7 +2385,7 @@ config("symbols") { +@@ -2385,7 +2386,7 @@ config("symbols") { # DWARF info may be corrupt; offsets in a range list entry are in different # sections" there. Maybe just a bug in nacl_switch_32.S. if (!is_apple && !is_nacl && current_cpu != "x86" &&
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304182151.33ILpnHw060866>