Unverified Commit 79893569 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

rust-hypervisor-firmware: make assert lazy (#426900)

parents e964cba1 4fac5087
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -12,14 +12,14 @@ let

in

assert lib.assertMsg (builtins.pathExists target) "Target spec not found";

let
  cross = import ../../../.. {
    system = stdenv.hostPlatform.system;
    crossSystem = lib.systems.examples."${arch}-embedded" // {
      rust.rustcTarget = "${arch}-unknown-none";
      rust.platform = lib.importJSON target;
      rust.platform =
        assert lib.assertMsg (builtins.pathExists target) "Target spec not found";
        lib.importJSON target;
    };
  };