mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 11:57:43 +08:00
add conditional compiling for using io_uring
This commit is contained in:
parent
9913bcdb81
commit
5baf77edf5
@ -117,7 +117,10 @@ endif
|
||||
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
|
||||
UNIXTYPE = LINUX
|
||||
CFLAGS += -DSHARE_STACK
|
||||
CFLAGS += -DHAS_IO_URING
|
||||
has_io_uring=$(HAS_IO_URING)
|
||||
ifeq ($(has_io_uring), yes)
|
||||
CFLAGS += -DHAS_IO_URING
|
||||
endif
|
||||
endif
|
||||
|
||||
# For CYGWIN
|
||||
|
@ -1,5 +1,8 @@
|
||||
include ../Makefile.in
|
||||
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
|
||||
SYSLIB += -luring
|
||||
has_io_uring=$(HAS_IO_URING)
|
||||
ifeq ($(has_io_uring), yes)
|
||||
SYSLIB += -luring
|
||||
endif
|
||||
endif
|
||||
PROG = client
|
||||
|
@ -1,5 +1,8 @@
|
||||
include ../Makefile.in
|
||||
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
|
||||
SYSLIB += -luring
|
||||
has_io_uring=$(HAS_IO_URING)
|
||||
ifeq ($(has_io_uring), yes)
|
||||
SYSLIB += -luring
|
||||
endif
|
||||
endif
|
||||
PROG = file
|
||||
|
@ -1,5 +1,8 @@
|
||||
include ../Makefile.in
|
||||
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
|
||||
SYSLIB += -luring
|
||||
has_io_uring=${HAS_IO_URING)
|
||||
ifeq ($(has_io_uring), yes)
|
||||
SYSLIB += -luring
|
||||
endif
|
||||
endif
|
||||
PROG = server
|
||||
|
Loading…
Reference in New Issue
Block a user