Skip to content

Commit

Permalink
Merge #323668: rustc: disable zerocallusedregs on clang
Browse files Browse the repository at this point in the history
...into staging-next
  • Loading branch information
vcunat committed Jul 1, 2024
2 parents 9b8b1b9 + 68538d3 commit 1ddc1ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/compilers/rust/rustc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,10 @@ in stdenv.mkDerivation (finalAttrs: {
"i686-windows" "x86_64-windows"
];
};
} // lib.optionalAttrs stdenv.cc.isClang { # FIXME: move inside again when rebuilds are OK
hardeningDisable = optionals stdenv.cc.isClang [
# remove once https://github.com/NixOS/nixpkgs/issues/318674 is
# addressed properly
"zerocallusedregs"
];
})

0 comments on commit 1ddc1ff

Please sign in to comment.