WIP: BG95/sequencer sanitizers
This commit is contained in:
@@ -221,6 +221,19 @@ build-clang: $(BUILD_DIR)/$(TARGET)
|
||||
.PHONY: debug
|
||||
debug: $(BUILD_DIR)/$(TARGET)
|
||||
|
||||
|
||||
.PHONY: test_asan
|
||||
test_asan: CFLAGS += -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_tsan: LDFLAGS += -fsanitize=thread
|
||||
test_tsan: $(BUILD_DIR)/$(TARGET)
|
||||
|
||||
|
||||
.PHONY: release
|
||||
release: CFLAGS := $(REL_CFLAGS)
|
||||
release: $(BUILD_DIR)/$(TARGET)
|
||||
|
||||
Reference in New Issue
Block a user