Clarify disabled warning for Metal in BUILD.gn

BUG=

Change-Id: I7f0715bbaaae433d2f1a93c5a2496f28d466e150
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11220
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2019-09-18 04:40:32 +00:00 committed by Commit Bot service account
parent 897ebc7a71
commit 7dda7d0f2e
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ source_set("dawn_platform") {
config("libdawn_native_internal") {
configs = [ "${dawn_root}/src/common:dawn_internal" ]
# Suppress warnings that Metal isn't in the deployment target of Chrome
# Suppress warnings that Metal isn't in the deployment target of Chrome:
# initialization of the Metal backend is behind a IsMetalSupported check so
# Dawn won't call Metal functions on macOS 10.10.
# TODO(cwallez@chromium.org): Consider using API_AVAILABLE annotations on all
# metal code in dawn once crbug.com/1004024 is sorted out.
if (is_mac) {
cflags_objcc = [ "-Wno-unguarded-availability" ]
}