Bug 1610986 - add a specific target for lucet compilation; r=firefox-build-system-reviewers,rstewart

We're going to need this for handling Mac cross compiles correctly.

Depends on D62795

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nathan Froyd 2020-02-13 21:20:34 +00:00
Родитель a3d8f9303d
Коммит 9df9f90a4a
2 изменённых файлов: 5 добавлений и 0 удалений

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

@ -566,6 +566,7 @@ $(WASM_ARCHIVE): $(CWASMOBJS) $(CPPWASMOBJS) $(STATIC_LIBS) $(EXTRA_DEPS) $(GLOB
$(WASM_CXX) $(OUTOPTION)$@ -Wl,--export-all $(WASM_LDFLAGS) $(CWASMOBJS) $(CPPWASMOBJS)
lucet_options := \
--target $(LUCETC_TARGET) \
--target-cpu baseline \
--bindings $(topsrcdir)/third_party/rust/lucet-wasi/bindings.json \
--guard-size 4GiB \

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

@ -1890,6 +1890,10 @@ with only_when(requires_wasm_sandboxing & compile_environment):
return value
set_config('WASM_LDFLAGS', wasm_ldflags)
# Re-using the Rust target triple here is not exactly correct, but it is an
# excellent approximation for the platforms we currently support
set_config('LUCETC_TARGET', rust_target_triple)
@depends('--with-wasm-sandboxed-libraries', target)
def wasm_sandboxing(libraries, target):