Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 623e81693617b97c0c7b55c396feef3be6d5b86f..87f7f53dfece8cdd3d129d1eebc146b05f9d71c9 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -173,8 +173,11 @@ config("compiler") { |
"-ffunction-sections", |
"-funwind-tables", |
"-fno-short-enums", |
- "-finline-limit=64", |
] |
+ if (!is_clang) { |
+ # Clang doesn't support this one. |
+ cflags += [ "-finline-limit=64" ] |
+ } |
if (is_android_webview_build) { |
# Android predefines this as 1; undefine it here so Chromium can redefine |
# it later to be 2 for chromium code and unset for third party code. This |