mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
942b77d16c
This patch introduces a small change in behavior: we now unconditionally require libffi > 3.0.9 when using system ffi, rather than accepting 3.0.9 when using GCC, as 3.0.10 was released 5 years ago, and should be widely available. MozReview-Commit-ID: DtSDPoZSPcx
17 lines
661 B
Python
17 lines
661 B
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
js_option('--with-system-ffi',
|
|
help='Use system libffi (located with pkgconfig)')
|
|
|
|
use_system_ffi = depends_if('--with-system-ffi')(lambda _: True)
|
|
|
|
system_ffi = pkg_check_modules('MOZ_FFI', 'libffi > 3.0.9',
|
|
when=use_system_ffi)
|
|
|
|
set_config('MOZ_SYSTEM_FFI', system_ffi)
|
|
add_old_configure_assignment('MOZ_SYSTEM_FFI', system_ffi)
|