Skip to content

Commit

Permalink
disable parallel rustc (-C codegen-units=1)
Browse files Browse the repository at this point in the history
  • Loading branch information
P-E-Meunier committed Apr 16, 2018
1 parent 8e87f73 commit ec40f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/rust/build-rust-crate.nix
Expand Up @@ -187,7 +187,7 @@ let makeDeps = dependencies:
rustcOpts =
lib.lists.foldl' (opts: opt: opts + " " + opt)
(if release then "-C opt-level=3" else "-C debuginfo=2")
extraRustcOpts;
(["-C codegen-units=1"] ++ extraRustcOpts);
rustcMeta = "-C metadata=${metadata} -C extra-filename=-${metadata}";
version_ = lib.splitString "-" crateVersion;
versionPre = if lib.tail version_ == [] then "" else builtins.elemAt version_ 1;
Expand Down

0 comments on commit ec40f19

Please sign in to comment.