Remove system-header-prefix from src/utils/BUILD.gn Remove d3d12.h for agility-sdk. Bug: 523358231 Change-Id: Ib5f51b101e3d997d699b6f2a65c37abf44a9b767 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/325215 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com>
diff --git a/src/utils/BUILD.gn b/src/utils/BUILD.gn index 1d0e423..b9f0be6 100644 --- a/src/utils/BUILD.gn +++ b/src/utils/BUILD.gn
@@ -131,28 +131,6 @@ "-Wdeprecated-builtins", "-Wc++98-compat-extra-semi", ] - - # Treat third_party and gen headers as system headers to suppress - # warnings. The path needs to be the literal beginning of the string in - # the #include directive, so include path resolving to different names - # is added separately. - # - # This is only applied when dawn_standalone. Chromium build has - # system_headers_in_deps = false by default. - # - # TODO(https://crbug.com/523358231): For dependencies whose code ends up in - # Dawn, we should try suppressing individual warnings more specifically - # using warning_suppression_mappings.txt. - _prefixes = [ - # Also include headers from prebuilt third_party libraries, such as - # agility-sdk. - "d3d12.h", - ] - foreach(_prefix, _prefixes) { - # Prefix with -Xclang so this will be accepted by both clang-cl and - # clang. - cflags += [ "-Xclang=--system-header-prefix=${_prefix}" ] - } } else { cflags = [ "-Wall",