ggml : do not use _GNU_SOURCE gratuitously
This commit is contained in:
parent
447ccbe8c3
commit
78fafcaf10
4 changed files with 10 additions and 11 deletions
8
Makefile
8
Makefile
|
@ -49,6 +49,14 @@ CFLAGS = -I. $(OPT) -std=c11 -fPIC
|
|||
CXXFLAGS = -I. -I./examples $(OPT) -std=c++11 -fPIC
|
||||
LDFLAGS =
|
||||
|
||||
# clock_gettime came in POSIX.1b (1993)
|
||||
# CLOCK_MONOTONIC came in POSIX.1-2001 / SUSv3 as optional
|
||||
# posix_memalign came in POSIX.1-2001 / SUSv3
|
||||
# M_PI is an XSI extension since POSIX.1-2001 / SUSv3, came in XPG1 (1985)
|
||||
# ref: https://github.com/ggerganov/whisper.cpp/pull/1027
|
||||
CFLAGS += -D_XOPEN_SOURCE=600
|
||||
CXXFLAGS += -D_XOPEN_SOURCE=600
|
||||
|
||||
ifdef LLAMA_DEBUG
|
||||
CFLAGS += -O0 -g
|
||||
CXXFLAGS += -O0 -g
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue