rust-hypervisor-firmware: fix build (#257345)

Co-authored-by: Yureka <yuka@yuka.dev>
This commit is contained in:
Astro 2023-09-26 13:57:46 +02:00 committed by GitHub
parent 0019463360
commit e97f8fecfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,9 @@
{ lib
, fetchFromGitHub
, makeRustPlatform
, hostPlatform
, targetPlatform
, cargo
, rustc
, lld
}:
@ -24,7 +25,12 @@ let
};
};
inherit (cross) rustPlatform;
# inherit (cross) rustPlatform;
# ^ breaks because we are doing a no_std embedded build with a custom sysroot,
# but the fast_cross rustc wrapper already passes a sysroot argument
rustPlatform = cross.makeRustPlatform {
inherit rustc cargo;
};
in