Fix makefile build with WITH_EDITLINE=no.

Closes #3484. Thanks to Matt Turner.
This commit is contained in:
Roger A. Light 2026-02-11 15:48:10 +00:00
parent 800ec38e22
commit 2d2950a6a5
3 changed files with 14 additions and 3 deletions

View file

@ -5,10 +5,13 @@
- Fix MOSQ_EVT_DISCONNECT being called before MOSQ_EVT_ACL_CHECK for the will
of that client. Closes #3487.
Plugins
# Plugins
- Fix migrate_to_persist_sqlite.py not base64 decoding message payloads when
migrating. Closes #3492.
# Build:
- Fix test building with WITH_EDITLINE=no. Closes #3484.
2.1.2 - 2026-02-09
==================

View file

@ -15,9 +15,11 @@ LOCAL_CPPFLAGS+= \
LOCAL_CXXFLAGS+=-std=c++20 -Wall -ggdb -D TEST_SOURCE_DIR='"$(realpath .)"'
MOCKS = \
editline_mock.o \
pthread_mock.o
ifeq ($(WITH_EDITLINE),yes)
MOCKS+=editline_mock.o
endif
all : test-compile
test-compile : ${MOCKS}

View file

@ -18,10 +18,16 @@ LOCAL_CXXFLAGS+=-std=c++20 -Wall -ggdb -D TEST_SOURCE_DIR='"$(realpath .)"'
MOCK_OBJS = \
ctrl_shell_mock.o
ifeq ($(WITH_EDITLINE),yes)
all : test-compile
test-compile: ${MOCK_OBJS}
check : test
else
all :
test-compile:
check :
endif
# MOCKS