Skip to content

Commit

Permalink
Backed out changeset c0e6aae0b93d (bug 1294803) for breaking artifact…
Browse files Browse the repository at this point in the history
… builds.

MozReview-Commit-ID: BTrQMCJSCRn
  • Loading branch information
chmanchester committed Aug 19, 2016
1 parent 65ba8ff commit 76d8f14
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 18 deletions.
20 changes: 20 additions & 0 deletions build/autoconf/ffi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@ dnl This Source Code Form is subject to the terms of the Mozilla Public
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.

AC_DEFUN([MOZ_CONFIG_FFI], [
MOZ_ARG_ENABLE_BOOL(system-ffi,
[ --enable-system-ffi Use system libffi (located with pkgconfig)],
MOZ_SYSTEM_FFI=1 )
if test -n "$MOZ_SYSTEM_FFI"; then
# Vanilla libffi 3.0.9 needs a few patches from upcoming version 3.0.10
# for non-GCC compilers.
if test -z "$GNU_CC"; then
PKG_CHECK_MODULES(MOZ_FFI, libffi > 3.0.9)
else
PKG_CHECK_MODULES(MOZ_FFI, libffi >= 3.0.9)
fi
fi
AC_SUBST(MOZ_SYSTEM_FFI)
])

AC_DEFUN([MOZ_SUBCONFIGURE_FFI], [
if test "$MOZ_BUILD_APP" != js -o -n "$JS_STANDALONE"; then
Expand Down
16 changes: 0 additions & 16 deletions build/moz.configure/ffi.configure

This file was deleted.

1 change: 1 addition & 0 deletions build/moz.configure/old.configure
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def old_configure_options(*options):
'--enable-synth-pico',
'--enable-system-cairo',
'--enable-system-extension-dirs',
'--enable-system-ffi',
'--enable-system-pixman',
'--enable-system-sqlite',
'--enable-tasktracer',
Expand Down
5 changes: 5 additions & 0 deletions js/src/old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,11 @@ if test -n "$ZLIB_IN_MOZGLUE"; then
fi
AC_SUBST(ZLIB_IN_MOZGLUE)

dnl ========================================================
dnl system libffi Support
dnl ========================================================
MOZ_CONFIG_FFI()

dnl ========================================================
dnl =
dnl = Application
Expand Down
2 changes: 0 additions & 2 deletions moz.configure
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ include_when('build/moz.configure/headers.configure',
when='--enable-compile-environment')
include_when('build/moz.configure/warnings.configure',
when='--enable-compile-environment')
include_when('build/moz.configure/ffi.configure',
when='--enable-compile-environment')

@dependable
@imports(_from='mozbuild.backend', _import='backends')
Expand Down
5 changes: 5 additions & 0 deletions old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,11 @@ fi # SKIP_LIBRARY_CHECKS

AC_SUBST(MOZ_PNG_ARM_NEON)

dnl ========================================================
dnl system libffi Support
dnl ========================================================
MOZ_CONFIG_FFI()

dnl ========================================================
dnl =
dnl = Application
Expand Down

0 comments on commit 76d8f14

Please sign in to comment.