aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2016-01-27 16:45:21 -0500
committerMike Frysinger <vapier@chromium.org>2016-01-27 16:45:21 -0500
commit3f736ce086d9a0ba0e3242d83f810968f5804adf (patch)
tree226d3f1d7ebdd1db395da2853d92cf8f397e2b2c /configure.ac
parentconvert to uint8_t* for binary data to fix -Wnarrowing build errors (diff)
downloadbreakpad-3f736ce086d9a0ba0e3242d83f810968f5804adf.tar.xz
only build dump_syms_mac for x86 hosts
The dump_syms_mac tool only works for the system it is being built for (it doesn't support running on ELFs for a diff target), and it builds only for x86 currently. If you look at the mac header: src/third_party/mac_headers/mach/machine/vm_types.h it will #error for non x86/arm systems, and the arm header is not in our source tree. Tweak the build so it's only compiled when targetting x86 systems. BUG=chromium:579384 TEST=`make check` pass R=ted.mielczarek@gmail.com Review URL: https://codereview.chromium.org/1645673002 .
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 18426ae1..23195b7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,14 @@ case $host in
esac
AM_CONDITIONAL(ANDROID_HOST, test x$ANDROID_HOST = xtrue)
+# Some tools (like mac ones) only support x86 currently.
+case $host_cpu in
+ i?86|x86_64)
+ X86_HOST=true
+ ;;
+esac
+AM_CONDITIONAL(X86_HOST, test x$X86_HOST = xtrue)
+
AC_ARG_ENABLE(processor,
AS_HELP_STRING([--disable-processor],
[Don't build processor library]