mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Fix and enable -Wnested-anon-types
Bug: dawn:394 Change-Id: I51b533c07f21bcacd22a058cf4a080b9b2b853f7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/20700 Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
754c161fd3
commit
e642b1d959
6
third_party/gn/glm/BUILD.gn
vendored
6
third_party/gn/glm/BUILD.gn
vendored
@@ -18,6 +18,12 @@ assert(dawn_standalone)
|
||||
|
||||
config("glm_public_config") {
|
||||
include_dirs = [ "${dawn_glm_dir}" ]
|
||||
|
||||
# GLM tries to suppress the warning for clang but gets confused by clang-cl
|
||||
# and thinks it is MSVC.
|
||||
if (is_win && is_clang) {
|
||||
cflags = [ "-Wno-nested-anon-types" ]
|
||||
}
|
||||
}
|
||||
source_set("glm") {
|
||||
configs -= [ "//build/config/compiler:chromium_code" ]
|
||||
|
||||
Reference in New Issue
Block a user