author | Nathan Froyd <froydnj@gmail.com> |
Tue, 28 Jun 2016 23:48:49 -0400 | |
changeset 302950 | 7c3a439aee1c9e5a35fe96d9864c0f741ccb6207 |
parent 302949 | 0f7edd43d27ecc27622c08c03d1229cdef729339 |
child 302951 | cf1089793debba142296ec204fce66e60e8ae492 |
push id | 78931 |
push user | nfroyd@mozilla.com |
push date | Tue, 28 Jun 2016 19:50:16 +0000 |
treeherder | mozilla-inbound@7c3a439aee1c [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | glandium |
bugs | 1195477 |
milestone | 50.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/build/autoconf/ffi.m4 +++ b/build/autoconf/ffi.m4 @@ -32,16 +32,22 @@ if test "$MOZ_BUILD_APP" != js -o -n "$J ac_configure_args="$ac_configure_args --enable-debug" fi if test "$DSO_PIC_CFLAGS"; then ac_configure_args="$ac_configure_args --with-pic" fi for var in AS CC CXX CPP LD AR RANLIB STRIP; do ac_configure_args="$ac_configure_args $var='`eval echo \\${${var}}`'" done + old_cflags="$CFLAGS" + # The libffi sources (especially the ARM ones) are written expecting gas + # syntax, and clang's integrated assembler doesn't handle all of gas syntax. + if test -n "$CLANG_CC" -a "$CPU_ARCH" = arm; then + CFLAGS="-no-integrated-as $CFLAGS" + fi if test "$CROSS_COMPILE"; then export CPPFLAGS CFLAGS LDFLAGS fi ac_configure_args="$ac_configure_args --build=$build --host=$target" if test "$_MSC_VER"; then # Use a wrapper script for cl and ml that looks more like gcc. # autotools can't quite handle an MSVC build environment yet. LDFLAGS= @@ -72,13 +78,14 @@ if test "$MOZ_BUILD_APP" != js -o -n "$J # Use a separate cache file for libffi, since it does things differently # from our configure. old_config_files=$CONFIG_FILES unset CONFIG_FILES AC_OUTPUT_SUBDIRS(js/src/ctypes/libffi) ac_configure_args="$_SUBDIR_CONFIG_ARGS" CONFIG_FILES=$old_config_files + CFLAGS="$old_cflags" fi fi ])