]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
talk-llama : fix build on macOS (#1062)
authorPrzemysław Pawełczyk <redacted>
Wed, 28 Jun 2023 19:34:50 +0000 (21:34 +0200)
committerGitHub <redacted>
Wed, 28 Jun 2023 19:34:50 +0000 (22:34 +0300)
commit85ed71aaec8e0612a84c0b67804bde75aa75a273
tree1c7f85b2e604b43da9cd5d6372e30fdab052795d
parent49c9472fa06191c71d04897ced62cf310353b2e0
talk-llama : fix build on macOS (#1062)

* talk-llama : use posix_madvise() instead of madvise() derived from BSD

sed -i 's,\<madvise\>,posix_&,g;s,\<MADV_,POSIX_&,g' examples/talk-llama/llama-util.h

* make : enable Darwin extensions for macOS builds

This is an attempt at fixing macOS build error coming from the fact that
RLIMIT_MEMLOCK define is not available there without Darwin extensions.
Makefile
examples/talk-llama/llama-util.h