mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 03:11:29 +00:00
By bumping the min macOS SDK version for standalone Dawn builds we are able to re-introduce -Wunguarded-availability, which will help prevent usage of Metal APIs without correctly checking for their availability. BUG= Change-Id: Iebf2f64e9f68e2a7a90fc6f3f208967f952f3487 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11400 Reviewed-by: Nico Weber <thakis@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# Copyright 2018 The Dawn Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
buildconfig = "//build/config/BUILDCONFIG.gn"
|
|
|
|
default_args = {
|
|
clang_use_chrome_plugins = false
|
|
|
|
# Override the mac version so standalone Dawn compiles with at least 10.11
|
|
# which allows us to not skip the -Wunguarded-availability warning and get
|
|
# proper warnings for use of APIs that are 10.12 and above (even if
|
|
# Chromium is still on 10.10).
|
|
mac_deployment_target = "10.11.0"
|
|
mac_min_system_version = "10.11.0"
|
|
}
|
|
|
|
check_targets = [
|
|
# Everything in BUILD.gn
|
|
"//:*",
|
|
|
|
# Everything in third_party/BUILD.gn
|
|
"//third_party/:*",
|
|
]
|