Index: tools/grit/grit_rule.gni |
diff --git a/tools/grit/grit_rule.gni b/tools/grit/grit_rule.gni |
index d437ee102fd43074953846557af737dec067a831..4a1fc3e7b242cddcf51873fb8f53251f75acf494 100644 |
--- a/tools/grit/grit_rule.gni |
+++ b/tools/grit/grit_rule.gni |
@@ -357,10 +357,7 @@ template("grit") { |
} |
if ((is_linux || is_android) && enable_resource_whitelist_generation) { |
- cflags = [ |
- "-Wunknown-pragmas", |
- "-Wno-error=unknown-pragmas", |
- ] |
+ configs += [ "//build/config/compiler:disable_unknown_pragma" ] |
} |
visibility = target_visibility |
} |