Skip to content

Commit

Permalink
Update sanitize address options
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 5, 2025
1 parent 70164b3 commit e76db70
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions platforms/desktop-shared/Makefile.common
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
define HEADER
____ _
/ ___| ___ __ _ _ __| |__ ___ _ _
| | _ / _ \\/ _` | '__| '_ \\ / _ \\| | | |
| | _ / _ \/ _` | '__| '_ \ / _ \| | | |
| |_| | __/ (_| | | | |_) | (_) | |_| |
\\____|\\___|\\__,_|_| |_.__/ \\___/ \\__, |
\____|\___|\__,_|_| |_.__/ \___/ \__, |
|___/

** Building for $(PLATFORM) platform **
Expand All @@ -13,7 +13,7 @@ endef
export HEADER

TARGET_NAME = gearboy
GIT_VERSION := "$(shell git describe --abbrev=7 --dirty --always --tags)"
GIT_VERSION := $(shell git describe --abbrev=7 --dirty --always --tags)
UNAME_S := $(shell uname -s)
PLATFORM = "undefined"

Expand All @@ -36,17 +36,17 @@ CFLAGS += -std=c99
DEBUG ?= 0
ifeq ($(DEBUG), 1)
BUILD_CONFIG = Debug
CPPFLAGS +=-DDEBUG -g3
CPPFLAGS += -DDEBUG -g3
else
BUILD_CONFIG = Release
CPPFLAGS +=-DNDEBUG -O3 -flto=auto
CPPFLAGS += -DNDEBUG -O3 -flto=auto
LDFLAGS += -O3 -flto=auto
endif

SANITIZE ?= 0
ifeq ($(SANITIZE), 1)
CPPFLAGS +=-fsanitize=address
LDFLAGS += -lasan
CPPFLAGS += -fsanitize=address
LDFLAGS += -fsanitize=address
endif

ifeq ($(UNAME_S), Linux)
Expand Down

0 comments on commit e76db70

Please sign in to comment.