mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
debug : DEBUG_ASAN build flag.
git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libusbhxcfe/trunk@2105 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
@@ -8,15 +8,21 @@ BASEDIR=../sources
|
||||
INCLUDES = -I$(BASEDIR)/ -I ../../../libhxcfe/trunk/sources -I ../sources/win32 -I ../../../libhxcadaptor/trunk/sources
|
||||
|
||||
DEBUG ?= 0
|
||||
DEBUG_ASAN ?= 0
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS=-O0 $(INCLUDES) -Wall -g -DDEBUG -fsanitize=address -fno-omit-frame-pointer
|
||||
LDFLAGS= -shared -s -lasan
|
||||
CFLAGS=-O0 $(INCLUDES) -Wall -g -DDEBUG
|
||||
LDFLAGS= -shared -s
|
||||
else
|
||||
CFLAGS=-O3 $(INCLUDES) -Wall
|
||||
LDFLAGS= -shared
|
||||
endif
|
||||
|
||||
ifeq ($(DEBUG_ASAN), 1)
|
||||
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||
LDFLAGS += -static-libasan -fsanitize=address
|
||||
endif
|
||||
|
||||
EXEC=libusbhxcfe.so
|
||||
|
||||
ifeq ($(TARGET), Linux)
|
||||
|
||||
Reference in New Issue
Block a user