shithub: libmujs

Download patch

ref: c5296bf469972d4625d24d24459ba7567f5c5d87
parent: bfebb7aa5c152ac8be77db6a796b300af3817064
author: Sebastian Rasmussen <sebras@gmail.com>
date: Sun May 21 12:08:50 EDT 2017

Add sanitize build variant.

--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,9 @@
 
 ifeq "$(build)" "debug"
 CFLAGS += -g
+else ifeq "$(build)" "sanitize"
+CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
+LDFLAGS += -fsanitize=address
 else
 CFLAGS += -Os
 ifeq "$(shell uname)" "Linux"
@@ -27,6 +30,9 @@
 
 debug:
 	$(MAKE) build=debug clean default
+
+sanitize:
+	$(MAKE) build=sanitize clean default
 
 release:
 	$(MAKE) build=release clean default