mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 11:05:45 +01:00
fix: windows compilation because it doesn't support sanitisers
This commit is contained in:
14
makefile
14
makefile
@@ -21,13 +21,19 @@ ISWIN := $(if $(filter linux darwin freebsd netbsd openbsd,$(KERNEL)),0,1)
|
|||||||
|
|
||||||
# profiles
|
# profiles
|
||||||
ifeq ($(DEBUG),1) # check whether we're debugging
|
ifeq ($(DEBUG),1) # check whether we're debugging
|
||||||
CFLAGS += -Og -g -fsanitize=address,undefined
|
CFLAGS += -Og -g
|
||||||
LDFLAGS += -fsanitize=address,undefined
|
|
||||||
PROF := dbg
|
PROF := dbg
|
||||||
|
ifeq ($(ISWIN),0)
|
||||||
|
CFLAGS += -fsanitize=address,undefined
|
||||||
|
LDFLAGS += -fsanitize=address,undefined
|
||||||
|
endif
|
||||||
else ifeq ($(DEBUG),test) # check whether we're perhaps testing
|
else ifeq ($(DEBUG),test) # check whether we're perhaps testing
|
||||||
CFLAGS += -O2 -g -fsanitize=address
|
CFLAGS += -O2 -g
|
||||||
LDFLAGS += -fsanitize=address
|
|
||||||
PROF := test
|
PROF := test
|
||||||
|
ifeq ($(ISWIN),0)
|
||||||
|
CFLAGS += -fsanitize=address
|
||||||
|
LDFLAGS += -fsanitize=address
|
||||||
|
endif
|
||||||
else # otherwise, assume release
|
else # otherwise, assume release
|
||||||
CFLAGS += -O2 -DNDEBUG
|
CFLAGS += -O2 -DNDEBUG
|
||||||
PROF := rel
|
PROF := rel
|
||||||
|
|||||||
Reference in New Issue
Block a user