Skip to content

Commit

Permalink
[nix] add patch for buddy-mlir
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <dev@avimit.in>
  • Loading branch information
Avimitin committed Jul 29, 2024
1 parent 36c135f commit d86522c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nix/pkgs/buddy-mlir.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ cmake, ninja, python3, llvmPackages_17, fetchFromGitHub }:
{ cmake, ninja, python3, llvmPackages_17, fetchFromGitHub, fetchpatch }:
let
stdenv = llvmPackages_17.stdenv;
bintools = llvmPackages_17.bintools;
Expand Down Expand Up @@ -34,6 +34,15 @@ stdenv.mkDerivation {

nativeBuildInputs = [ cmake ninja python3 bintools ];

prePatch = "pushd ../buddy-mlir";
patches = [
(fetchpatch {
url = "https://github.com/buddy-compiler/buddy-mlir/pull/357.patch";
hash = "sha256-ysPcHAkrFJDtHmWVo35Wz6ullIGsP1EedYdJCq4fRX4=";
})
];
postPatch = "popd";

cmakeDir = "../llvm";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
Expand Down

0 comments on commit d86522c

Please sign in to comment.