Bug 1577046 - Tie extra-bindgen-flags file creation to cranelift. r=chmanchester

We only recurse into js/src/rust when jsrust is built, which it may not
be in Gecko builds. But cranelift, which may be enabled either way,
needs the extra-bindgen-flags file.

Differential Revision: https://phabricator.services.mozilla.com/D43699

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2019-08-27 23:19:17 +00:00
parent 8de5cc2d2f
commit 02f319bd8c
2 changed files with 3 additions and 2 deletions

View File

@ -47,6 +47,9 @@ for stlfile in ['jsdate.*', 'jsnum.*']:
with Files('builtin/intl/*'):
BUG_COMPONENT = component_intl
if CONFIG['ENABLE_WASM_CRANELIFT']:
CONFIGURE_SUBST_FILES += ['rust/extra-bindgen-flags']
if not CONFIG['JS_DISABLE_SHELL']:
DIRS += [
'rust',

View File

@ -18,8 +18,6 @@ if CONFIG['ENABLE_WASM_CRANELIFT']:
RustLibrary('jsrust', features)
CONFIGURE_SUBST_FILES += ['extra-bindgen-flags']
if CONFIG['JS_SHARED_LIBRARY']:
FINAL_LIBRARY = 'js'