summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2016-02-26 12:18:12 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-26 20:19:16 +0000
commit2b4bbc244683f65fd9500f6e31263e21a301e6be (patch)
tree5989b2150e05642d8ecbc4e76df62b87601817ef
parent38c0829dd52db27c49c3a91a9fdc800eac2a8005 (diff)
downloadchromium_src-2b4bbc244683f65fd9500f6e31263e21a301e6be.zip
chromium_src-2b4bbc244683f65fd9500f6e31263e21a301e6be.tar.gz
chromium_src-2b4bbc244683f65fd9500f6e31263e21a301e6be.tar.bz2
gn: 32-bit stackalign hacks are only needed on Linux.
clang-cl in particular doesn't even understand this flag. BUG=590221,418554 Review URL: https://codereview.chromium.org/1733293004 Cr-Commit-Position: refs/heads/master@{#377957}
-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 accbed0..ce2f609 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -619,7 +619,7 @@ config("compiler_codegen") {
# configs -= [ "//build/config/compiler:clang_stackrealign" ]
# See https://crbug.com/556393 for details of where it must be avoided.
config("clang_stackrealign") {
- if (is_clang && current_cpu == "x86" && !is_nacl) {
+ if (is_clang && current_cpu == "x86" && is_linux) {
cflags = [
# Align the stack on 16-byte boundaries, http://crbug.com/418554.
"-mstack-alignment=16",