disable parallel rustc (-C codegen-units=1)

This commit is contained in:
pe@pijul.org 2018-04-16 16:16:28 +02:00
parent 8e87f73e36
commit ec40f193ac

View File

@ -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;