Unverified Commit 9282eba9 authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

Merge: linuxManualConfig: reinstate Rust (#436245)

parents dfdd9bf6 2cdf8d6a
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -245,11 +245,13 @@ lib.makeOverridable (
          rust-bindgen-unwrapped
        ];

        env = {
          RUST_LIB_SRC = lib.optionalString withRust rustPlatform.rustLibSrc;

          # avoid leaking Rust source file names into the final binary, which adds
          # a false dependency on rust-lib-src on targets with uncompressed kernels
          KRUSTFLAGS = lib.optionalString withRust "--remap-path-prefix ${rustPlatform.rustLibSrc}=/";
        };

        patches =
          # kernelPatches can contain config changes and no actual patch