Skip to content

Commit

Permalink
tests-stdenv-gcc-stageCompare: Fail gracefullyier
Browse files Browse the repository at this point in the history
Don't fail with a missing attribute error, so the error can be handled.
  • Loading branch information
Artturin committed Dec 6, 2024
1 parent 8f7e8b0 commit 376de9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/test/stdenv/gcc-stageCompare.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
}:

assert stdenv.cc.isGNU;
assert lib.assertMsg (pkgs.gcc-unwrapped ? checksum) "No `checksum` output in `gcc-unwrapped` see conditional in `gcc/common/checksum.nix`";

with pkgs;
# rebuild gcc using the "final" stdenv
let gcc-stageCompare = (gcc-unwrapped.override {
Expand Down

0 comments on commit 376de9c

Please sign in to comment.