Bug 1444141 - part 4 - make the JS engine depend on Rust; r=chmanchester,glandium,jorendorff

The Rust dependency in Firefox has been limited to Firefox builds by
virtue of having the Rust check in a Firefox-specific location,
toolkit/moz.configure.  For JS to start depending on Rust, we need to
move that check to a location where a standalone JS engine build will
pick up the Rust check.
This commit is contained in:
Nathan Froyd 2018-08-02 11:00:21 -05:00
Родитель 01b2107f8d
Коммит 3dc6481a30
4 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -18,6 +18,9 @@ def building_js(build_project, help):
option(env='JS_STANDALONE', default=building_js,
help='Reserved for internal use')
include('../build/moz.configure/rust.configure',
when='--enable-compile-environment')
@depends('JS_STANDALONE')
def js_standalone(value):
if value:

Просмотреть файл

@ -141,7 +141,7 @@ include('build/moz.configure/warnings.configure',
when='--enable-compile-environment')
include('build/moz.configure/flags.configure',
when='--enable-compile-environment')
# rust.configure is included by js/moz.configure.
js_option('--enable-valgrind',
help='Enable Valgrind integration hooks')

Просмотреть файл

@ -4658,6 +4658,7 @@ export MOZ_APP_NAME
export MOZ_APP_REMOTINGNAME
export MOZ_DEV_EDITION
export RUSTC
export CARGO
export MOZILLA_CENTRAL_PATH=$_topsrcdir
export STLPORT_CPPFLAGS
export STLPORT_LIBS

Просмотреть файл

@ -94,11 +94,6 @@ set_define('MOZ_PULSEAUDIO', depends_if(pulseaudio)(lambda _: True))
include('../js/moz.configure')
# Rust
# ==============================================================
include('../build/moz.configure/rust.configure',
when='--enable-compile-environment')
# NodeJS
# ==============================================================
include('../build/moz.configure/node.configure')