summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-07-11 14:30:52 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-02 12:19:06 -0400
commitdba692ca0fb44678fdcc7634d821f04eac2f8042 (patch)
tree5c170d571cb72d078e59edfb500a1976a71e4b22 /GNUmakefile
parent52de184ba28551734e1cb13233588504ab5f62ec (diff)
downloadbfs-dba692ca0fb44678fdcc7634d821f04eac2f8042.tar.xz
build: Add liburing on Linux
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6902979..8154240 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -126,6 +126,7 @@ ifndef NOLIBS
USE_ACL := y
USE_ATTR := y
USE_LIBCAP := y
+USE_LIBURING := y
endif
ifdef USE_ACL
@@ -146,6 +147,11 @@ else
LOCAL_CPPFLAGS += -DBFS_USE_SYS_CAPABILITY_H=0
endif
+ifdef USE_LIBURING
+LOCAL_CPPFLAGS += -DBFS_USE_LIBURING=1
+LOCAL_LDLIBS += -luring
+endif
+
LOCAL_LDFLAGS += -Wl,--as-needed
LOCAL_LDLIBS += -lrt
endif # Linux
@@ -287,7 +293,7 @@ ifneq ($(OS),Darwin)
endif
+$(MAKE) -B tsan ubsan check CC=clang $(DISTCHECK_FLAGS)
ifeq ($(OS) $(ARCH),Linux x86_64)
- +$(MAKE) -B check EXTRA_CFLAGS="-m32" ONIG_CONFIG= $(DISTCHECK_FLAGS)
+ +$(MAKE) -B check EXTRA_CFLAGS="-m32" ONIG_CONFIG= USE_LIBURING= $(DISTCHECK_FLAGS)
endif
+$(MAKE) -B release check $(DISTCHECK_FLAGS)
+$(MAKE) -B check $(DISTCHECK_FLAGS)