]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
ruby : add cleaning of library names in dependencies (#3241)
authorDaniel Bevenius <redacted>
Tue, 10 Jun 2025 13:06:40 +0000 (15:06 +0200)
committerGitHub <redacted>
Tue, 10 Jun 2025 13:06:40 +0000 (15:06 +0200)
commit2679bec6e09231c6fd59715fcba3eebc9e2f6076
treeeda8bdbada1a0c0e50f3cd2e6a1f678a585ca32b
parent93d543905e447cf956d9ed5a5263a97750b7b063
ruby : add cleaning of library names in dependencies (#3241)

* ruby : add cleaning of library names in dependencies

This commit adds a cleaning step to the library names in the
`Dependencies` class of the Ruby bindings.

The motivation for this is that with the introduction of a library name
alias for ggml in Commit (b933d17c306e800b6d919e3ee895219c3f64d5cd
"Add in-build ggml::ggml ALIAS library (ggml/1260)) causes the Makefile
generation to break:
```console
$ sed -n '165,170p' ext/Makefile
CLEANOBJS     = $(OBJS) *.bak
TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.time
$(TARGET_SO): libcommon.a libwhisper.a libggml\n(ggml::ggml).a libggml-cpu.a libggml-base.a
libcommon.a libwhisper.a libggml\n(ggml::ggml).a libggml-cpu.a libggml-base.a: cmake-targets
cmake-targets:
/usr/bin/cmake -S sources -B build -D BUILD_SHARED_LIBS=OFF -D CMAKE_ARCHIVE_OUTPUT_DIRECTORY=/home/danbev/work/ai/whisper.cpp/bindings/ruby/ext -D CMAKE_POSITION_INDEPENDENT_CODE=ON
```

* squash! ruby : add cleaning of library names in dependencies

Apply PR review feedback.
bindings/ruby/ext/dependencies.rb