Unverified Commit 1cb94f3c authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

honggfuzz: patch in support for gcc15 (#477016)

parents 0f31499f 36940de8
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch2,
  makeWrapper,
  clang,
  llvm,
@@ -22,6 +23,14 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-/ra6g0qjjC8Lo8/n2XEbwnZ95yDHcGhYd5+TTvQ6FAc=";
  };

  patches = [
    # [PATCH] mangle: support gcc-15 with __attribute__((nonstring))
    (fetchpatch2 {
      url = "https://github.com/google/honggfuzz/commit/4cfa62f4fdb56e3027c1cb3aecf04812e786f0fd.patch?full_index=1";
      hash = "sha256-79/GZfqTH1o/21P7At5ZPmvcCSYWAsVakSv5dNCT+XI=";
    })
  ];

  postPatch = ''
    substituteInPlace hfuzz_cc/hfuzz-cc.c \
      --replace '"clang' '"${clang}/bin/clang'