arch/sim: Fix macOS error: 'sem_init' is deprecated
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
406c6ae4dd
commit
76c2ede936
|
@ -79,6 +79,10 @@ VPATH = sim
|
|||
DEPPATH = $(patsubst %,--dep-path %,$(subst :, ,$(VPATH)))
|
||||
|
||||
HOSTCFLAGS += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)}
|
||||
ifeq ($(CONFIG_HOST_MACOS),y)
|
||||
HOSTCFLAGS += -Wno-deprecated-declarations
|
||||
endif
|
||||
|
||||
HOSTSRCS = up_hostmemory.c up_hosttime.c
|
||||
ifneq ($(CONFIG_HOST_MACOS),y)
|
||||
STDLIBS += -lrt
|
||||
|
|
Loading…
Reference in New Issue