Merge pull request #80843 from obsidiansystems/rust-no-std

rust 1.41: Fix build with no_std only target
This commit is contained in:
John Ericson
2020-02-23 00:48:45 -05:00
committed by GitHub
3 changed files with 25 additions and 0 deletions
@@ -4,6 +4,7 @@
, bootstrapVersion
, bootstrapHashes
, selectRustPackage
, rustcPatches ? []
}:
{ stdenv, lib
, buildPackages
@@ -79,6 +80,8 @@
sha256 = rustcSha256;
inherit enableRustcDev;
patches = rustcPatches;
# Use boot package set to break cycle
rustPlatform = bootRustPlatform;
} // lib.optionalAttrs (stdenv.cc.isClang && stdenv.hostPlatform == stdenv.buildPlatform) {