Bug 1595674 - Make the rust build respect -j1. r=froydnj

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Chris Manchester 2019-11-22 19:42:38 +00:00
Родитель 03641f5a5a
Коммит 09ba0f0398
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -41,6 +41,12 @@ cargo_build_flags += --color=always
endif endif
endif endif
# Without -j > 1, make will not pass jobserver info down to cargo. Force
# one job when requested as a special case.
ifeq (1,$(MOZ_PARALLEL_BUILD))
cargo_build_flags += -j1
endif
rustflags_lto = -Clto rustflags_lto = -Clto
# Disable LTO when linking gkrust_gtest. # Disable LTO when linking gkrust_gtest.
ifneq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE))) ifneq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))