Unverified Commit a4f31590 authored by Stefan Frijters's avatar Stefan Frijters
Browse files

rust-hypervisor-firmware: move RUSTFLAGS env variables into env for structuredAttrs

parent 64e28411
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -44,14 +44,15 @@ rustPlatform.buildRustPackage rec {
  # https://github.com/cloud-hypervisor/rust-hypervisor-firmware/issues/249
  auditable = false;

  env = {
    RUSTC_BOOTSTRAP = 1;
    RUSTFLAGS = "-C linker=lld -C linker-flavor=ld.lld";
  };

  nativeBuildInputs = [
    lld
  ];

  RUSTFLAGS = "-C linker=lld -C linker-flavor=ld.lld";

  # Tests don't work for `no_std`. See https://os.phil-opp.com/testing/
  doCheck = false;