Skip to content

Commit

Permalink
Bug 1595674 - Make the rust build respect -j1. r=froydnj
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D54060

--HG--
extra : moz-landing-system : lando
  • Loading branch information
chmanchester committed Nov 22, 2019
1 parent 03641f5 commit 09ba0f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/makefiles/rust.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ cargo_build_flags += --color=always
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
# Disable LTO when linking gkrust_gtest.
ifneq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
Expand Down

0 comments on commit 09ba0f0

Please sign in to comment.