Skip to content

Commit

Permalink
Merge pull request #238716 from amjoseph-nixpkgs/pr/gcc12/mips-libsan…
Browse files Browse the repository at this point in the history
…itizer

gcc12: disable libsanitizer for mips64
  • Loading branch information
Adam Joseph authored Aug 24, 2023
2 parents e9b86d7 + 6c8b8bc commit 87ffdca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/compilers/gcc/common/configure-flags.nix
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ let
++ lib.optionals (langD) [
"--with-target-system-zlib=yes"
]
# On mips64-unknown-linux-gnu libsanitizer defines collide with
# glibc's definitions and fail the build. It was fixed in gcc-13+.
++ lib.optionals (targetPlatform.isMips && targetPlatform.parsed.abi.name == "gnu" && lib.versions.major version == "12") [
"--disable-libsanitizer"
]
;

in configureFlags

0 comments on commit 87ffdca

Please sign in to comment.