summaryrefslogtreecommitdiffstats
path: root/breakpad/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'breakpad/BUILD.gn')
-rw-r--r--breakpad/BUILD.gn14
1 files changed, 14 insertions, 0 deletions
diff --git a/breakpad/BUILD.gn b/breakpad/BUILD.gn
index be2fe55..231abcc 100644
--- a/breakpad/BUILD.gn
+++ b/breakpad/BUILD.gn
@@ -554,6 +554,13 @@ if (is_linux || is_android) {
cflags = [ "-marm" ]
}
+ if (current_cpu == "x86" && is_clang) {
+ # Clang's -mstackrealign doesn't work well with
+ # linux_syscall_support.h hand written asm syscalls.
+ # See https://crbug.com/556393
+ cflags -= [ "-mstackrealign" ]
+ }
+
if (is_android) {
sources += [ "src/common/android/breakpad_getcontext.S" ]
}
@@ -659,6 +666,13 @@ if (is_linux || is_android) {
libs = [ "log" ]
include_dirs += [ "src/common/android/include" ]
}
+
+ if (current_cpu == "x86" && is_clang) {
+ # Clang's -mstackrealign doesn't work well with
+ # linux_syscall_support.h hand written asm syscalls.
+ # See https://crbug.com/556393
+ cflags -= [ "-mstackrealign" ]
+ }
}
executable("linux_dumper_unittest_helper") {