summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorhashimoto <hashimoto@chromium.org>2016-03-17 21:55:03 -0700
committerCommit bot <commit-bot@chromium.org>2016-03-18 04:56:08 +0000
commit4e700fe2518474e66cf61946ccfe04158e59613c (patch)
tree22c0e78f190e635a89f87b704c22a8fe93897173 /build
parentc740d5b9a7455a94ddce3835561aa2eb22942b7b (diff)
downloadchromium_src-4e700fe2518474e66cf61946ccfe04158e59613c.zip
chromium_src-4e700fe2518474e66cf61946ccfe04158e59613c.tar.gz
chromium_src-4e700fe2518474e66cf61946ccfe04158e59613c.tar.bz2
Apply -fno-tree-sra and -fno-caller-saves only to Android
I don't know why http://crrev.com/293913 has moved these flags outside if(is_android), but the corresponding GYP code (build/config.gypi) is still applying these flags only to Android. BUG=433082 Review URL: https://codereview.chromium.org/1807163002 Cr-Commit-Position: refs/heads/master@{#381890}
Diffstat (limited to 'build')
-rw-r--r--build/config/compiler/BUILD.gn2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 76a42eb..b71d146 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