From b440ef8c96bb5175b44c275a7b4ed450061e9bae Mon Sep 17 00:00:00 2001 From: Jhen-Jie Hong Date: Mon, 18 Sep 2023 21:15:45 +0800 Subject: [PATCH] binding : fix ruby build by adding missing ggml-alloc (#1305) --- bindings/ruby/ext/.gitignore | 2 ++ bindings/ruby/ext/extconf.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bindings/ruby/ext/.gitignore b/bindings/ruby/ext/.gitignore index 7c9cb037..9f9b7abd 100644 --- a/bindings/ruby/ext/.gitignore +++ b/bindings/ruby/ext/.gitignore @@ -1,6 +1,8 @@ Makefile ggml.c ggml.h +ggml-alloc.c +ggml-alloc.h whisper.bundle whisper.cpp whisper.h diff --git a/bindings/ruby/ext/extconf.rb b/bindings/ruby/ext/extconf.rb index 851c52db..95108b63 100644 --- a/bindings/ruby/ext/extconf.rb +++ b/bindings/ruby/ext/extconf.rb @@ -3,6 +3,8 @@ system("cp #{File.join(File.dirname(__FILE__),'..','..','..','whisper.cpp')} .") system("cp #{File.join(File.dirname(__FILE__),'..','..','..','whisper.h')} .") system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml.h')} .") system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml.c')} .") +system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-alloc.h')} .") +system("cp #{File.join(File.dirname(__FILE__),'..','..','..','ggml-alloc.c')} .") system("cp #{File.join(File.dirname(__FILE__),'..','..','..','examples','dr_wav.h')} .")