DEV: cli_device(renamed after ATmodem) added
This commit is contained in:
+5
-3
@@ -107,7 +107,7 @@ OCOPY := objcopy
|
||||
|
||||
# Compiler flags for debug and release
|
||||
DEB_CFLAGS := -std=gnu++17 -DDEBUG -g3 -Wall -Wextra -fmessage-length=0
|
||||
REL_CFLAGS := -std=gnu++17 -g3 -Wall -Wextra -O2 -fmessage-length=0
|
||||
REL_CFLAGS := -std=gnu++17 -Wall -Wextra -O2 -fmessage-length=0
|
||||
# Pre-defines
|
||||
PRE_DEFS :=
|
||||
ifeq ($(OS), Windows_NT)
|
||||
@@ -223,13 +223,15 @@ debug: $(BUILD_DIR)/$(TARGET)
|
||||
|
||||
|
||||
.PHONY: test_asan
|
||||
test_asan: CFLAGS += -fsanitize=address -fsanitize=leak -fsanitize=bounds-strict
|
||||
test_asan: CFLAGS := $(REL_CFLAGS)
|
||||
test_asan: CFLAGS += -g3 -fsanitize=address -fsanitize=leak -fsanitize=bounds-strict
|
||||
test_asan: LDFLAGS += -fsanitize=address -fsanitize=leak -fsanitize=bounds-strict
|
||||
test_asan: $(BUILD_DIR)/$(TARGET)
|
||||
|
||||
|
||||
.PHONY: test_tsan
|
||||
test_tsan: CFLAGS += -fsanitize=thread
|
||||
test_asan: CFLAGS := $(REL_CFLAGS)
|
||||
test_tsan: CFLAGS += -g3 -fsanitize=thread
|
||||
test_tsan: LDFLAGS += -fsanitize=thread
|
||||
test_tsan: $(BUILD_DIR)/$(TARGET)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user