From 3b7ad307ffb437543a338132ce3f207ce2ffb774 Mon Sep 17 00:00:00 2001 From: Ben Doherty Date: Fri, 27 Mar 2026 15:54:52 -0700 Subject: [PATCH] Dawn: silence availability warnings on macOS (#9849) --- third_party/dawn/tnt/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/third_party/dawn/tnt/CMakeLists.txt b/third_party/dawn/tnt/CMakeLists.txt index 297af9a6aa..0ea114fc0f 100644 --- a/third_party/dawn/tnt/CMakeLists.txt +++ b/third_party/dawn/tnt/CMakeLists.txt @@ -21,6 +21,12 @@ if (FILAMENT_BUILD_FILAMAT) set(TINT_BUILD_SPV_READER ON) endif () +# TODO: Dawn requires macOS 11.0, but Filament sets the min to 10.15. +# Silence the availability warnings for now. We can re-enable once we bump Filament's macOS min. +if (CMAKE_CXX_COMPILER_ID MATCHES "AppleClang|Clang") + add_compile_options(-Wno-unguarded-availability-new) +endif() + add_subdirectory(../ ${PROJECT_BINARY_DIR}/third_party/dawn) # Need to install libtint for filamat on Android.