Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 76a42eb399d573f7fce1ad3c5897554af7ce640b..b71d1464f94dc80f01ea7c74df5fb33cbc9414f8 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -594,7 +594,7 @@ config("compiler_codegen") { |
] |
} |
} else if (current_cpu == "arm") { |
- if (!is_clang) { |
+ if (is_android && !is_clang) { |
# Clang doesn't support these flags. |
cflags += [ |
# The tree-sra optimization (scalar replacement for |