aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-03-25 17:25:22 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-03-25 17:25:22 +0100
commit9e399a3e117fed32c63c05995600583414bb58c6 (patch)
tree8f07717a6aa639e01e9aaaddf7fdb93b0f391970
parent1a42bf20a334e43b77bdeced6c17597ee3df6ed1 (diff)
fixup makefile
-rw-r--r--cheesemap.c2
-rw-r--r--cheesemap.h2
-rw-r--r--makefile6
3 files changed, 5 insertions, 5 deletions
diff --git a/cheesemap.c b/cheesemap.c
index 4eba2c8..36ad496 100644
--- a/cheesemap.c
+++ b/cheesemap.c
@@ -107,7 +107,7 @@ static inline bitmask_t cm_group_match_empty(group_t group);
static inline bitmask_t cm_group_match_full(group_t group);
/* sse2 implementation */
-#ifdef CM_OPT_ENABLE_SSE2
+#ifdef CM_ENABLE_SSE2
static inline group_t cm_group_load(const uint8_t* ctrl) {
cm_assert(ctrl != NULL);
return _mm_loadu_si128((const group_t*)ctrl);
diff --git a/cheesemap.h b/cheesemap.h
index e736588..a309741 100644
--- a/cheesemap.h
+++ b/cheesemap.h
@@ -22,7 +22,7 @@ _Noreturn void CM_PANIC_SYM(const char* file, uint32_t line, const char* fmt,
CM_PANIC_SYM(__FILE__, __LINE__, "cm_assertion failed: %s", #cond); \
} while (0)
-#ifdef CM_OPT_ENABLE_SSE2
+#ifdef CM_ENABLE_SSE2
#include <emmintrin.h>
typedef __m128i group_t;
diff --git a/makefile b/makefile
index 0572630..c1bf8f0 100644
--- a/makefile
+++ b/makefile
@@ -3,7 +3,7 @@
# Build configuration options
CM_OPT_CC_FLAGS ?=
-CM_OPT_PANIC_NAME ?= panic_impl
+CM_OPT_PANIC_SYM ?= panic_impl
CM_OPT_RELEASE ?= 1
CM_OPT_ENABLE_UBSAN ?= 0
CM_OPT_ENABLE_ASAN ?= 0
@@ -27,7 +27,7 @@ cm_CFLAGS = -std=gnu11 \
-MMD -MP -I$(CM_DIR)
cm_CFLAGS += $(CM_OPT_CC_FLAGS)
-cm_CFLAGS += -DCM_OPT_PANIC_NAME='$(CM_OPT_PANIC_NAME)'
+cm_CFLAGS += -DCM_PANIC_SYM='$(CM_OPT_PANIC_SYM)'
ifeq ($(CM_OPT_RELEASE),1)
cm_CFLAGS += -O2 -fno-stack-protector
@@ -44,7 +44,7 @@ ifeq ($(CM_OPT_ENABLE_ASAN),1)
endif
ifeq ($(CM_OPT_ENABLE_SSE2),1)
- cm_CFLAGS += -DCM_OPT_ENABLE_SSE2=1 -msse2
+ cm_CFLAGS += -DCM_ENABLE_SSE2=1 -msse2
endif
# Target: cm_demo