$NetBSD: patch-src_3rdparty_chromium_base_compiler__specific.h,v 1.1 2025/12/21 09:38:13 markd Exp $

* Part of patchset to build chromium on NetBSD
* Based on OpenBSD's chromium patches, and
  pkgsrc's qt5-qtwebengine patches

--- src/3rdparty/chromium/base/compiler_specific.h.orig	2025-10-02 00:36:39.000000000 +0000
+++ src/3rdparty/chromium/base/compiler_specific.h
@@ -729,6 +729,8 @@ inline constexpr bool AnalyzerAssumeTrue
 #if __has_cpp_attribute(clang::preserve_most) &&             \
     (defined(ARCH_CPU_ARM64) || defined(ARCH_CPU_X86_64)) && \
     !defined(COMPONENT_BUILD) &&                             \
+    !defined(IS_OPENBSD) &&                                  \
+    !defined(IS_NETBSD) &&                                   \
     !(BUILDFLAG(IS_WIN) && defined(ARCH_CPU_ARM64))
 #define PRESERVE_MOST [[clang::preserve_most]]
 #else
