whisper.cpp/examples
Przemysław Pawełczyk b55b505690
build : do not use _GNU_SOURCE gratuitously (#1129)
* Do not use _GNU_SOURCE gratuitously.

What is needed to build whisper.cpp and examples is availability of
stuff defined in The Open Group Base Specifications Issue 6
(https://pubs.opengroup.org/onlinepubs/009695399/) known also as
Single Unix Specification v3 (SUSv3) or POSIX.1-2001 + XSI extensions,
plus some stuff from BSD that is not specified in POSIX.1.

Well, that was true until NUMA support was added recently in ggml,
so enable GNU libc extensions for Linux builds to cover that.

There is no need to penalize musl libc which simply follows standards.

Not having feature test macros in source code gives greater flexibility
to those wanting to reuse it in 3rd party app, as they can build it with
minimal FTM (_XOPEN_SOURCE=600) or other FTM depending on their needs.

It builds without issues in Alpine (musl libc), Ubuntu (glibc), MSYS2.

* examples : include SDL headers before other headers

Avoid macOS build error when _DARWIN_C_SOURCE is not defined, brought by
SDL2 relying on Darwin extension memset_pattern4/8/16 (from string.h).

* make : enable BSD extensions for DragonFlyBSD to expose RLIMIT_MEMLOCK

* make : use BSD-specific FTMs to enable alloca on BSDs

* make : fix OpenBSD build by exposing newer POSIX definitions

* cmake : follow recent FTM improvements from Makefile
2023-09-07 12:36:14 +03:00
..
addon.node
bench
bench.wasm
command build : do not use _GNU_SOURCE gratuitously (#1129) 2023-09-07 12:36:14 +03:00
command.wasm
lsp examples : fix build + compile warnings (close #1256) 2023-09-07 12:33:12 +03:00
main examples : fix build + compile warnings (close #1256) 2023-09-07 12:33:12 +03:00
quantize quantize : fix load vocab crash when len is 128 (#1160) 2023-08-06 11:04:42 +03:00
stream build : do not use _GNU_SOURCE gratuitously (#1129) 2023-09-07 12:36:14 +03:00
stream.wasm
talk build : do not use _GNU_SOURCE gratuitously (#1129) 2023-09-07 12:36:14 +03:00
talk-llama build : do not use _GNU_SOURCE gratuitously (#1129) 2023-09-07 12:36:14 +03:00
talk.wasm ggml : sync (ggml-alloc, GPU, eps, etc.) (#1220) 2023-09-05 13:54:40 +03:00
whisper.android whisper.android : bump gradle plugin and dependencies + a lint pass (#1255) 2023-09-07 12:15:59 +03:00
whisper.nvim examples : vim plugin and LSP server (#1144) 2023-08-27 21:35:06 +03:00
whisper.objc
whisper.swiftui
whisper.wasm
CMakeLists.txt examples : vim plugin and LSP server (#1144) 2023-08-27 21:35:06 +03:00
common-ggml.cpp
common-ggml.h
common-sdl.cpp
common-sdl.h
common.cpp examples : fix build + compile warnings (close #1256) 2023-09-07 12:33:12 +03:00
common.h ggml : sync (ggml-alloc, GPU, eps, etc.) (#1220) 2023-09-05 13:54:40 +03:00
dr_wav.h
generate-karaoke.sh
helpers.js
livestream.sh
twitch.sh
yt-wsp.sh