@@ -9,12 +9,14 @@
99
1010 let
1111 baseRustcOpts =
12− [(if release then "-C opt-level=3" else "-C debuginfo=2")]
13− ++ ["-C codegen-units=$NIX_BUILD_CORES"]
14− ++ ["--remap-path-prefix=$NIX_BUILD_TOP=/" ]
15− ++ [(mkRustcDepArgs dependencies crateRenames)]
16− ++ [(mkRustcFeatureArgs crateFeatures)]
17− ++ extraRustcOpts
12+ [
13+ (if release then "-C opt-level=3" else "-C debuginfo=2")
14+ "-C codegen-units=$NIX_BUILD_CORES"
15+ "-C incremental=no"
16+ "--remap-path-prefix=$NIX_BUILD_TOP=/"
17+ (mkRustcDepArgs dependencies crateRenames)
18+ (mkRustcFeatureArgs crateFeatures)
19+ ] ++ extraRustcOpts
1820 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--target ${rust.toRustTargetSpec stdenv.hostPlatform} -C linker=${stdenv.hostPlatform.config}-gcc"
1921 # since rustc 1.42 the "proc_macro" crate is part of the default crate prelude
2022 # https://github.com/rust-lang/cargo/commit/4d64eb99a4#diff-7f98585dbf9d30aa100c8318e2c77e79R1021-R1022