Mercurial > hg > forks > gldragon
comparison Makefile.gen @ 86:cc7fcaf139ef
Add ASAN build flag.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 21 May 2020 09:20:24 +0300 |
parents | 8a56cb177711 |
children | 22774e3f2a89 |
comparison
equal
deleted
inserted
replaced
85:2ce1f9f288c7 | 86:cc7fcaf139ef |
---|---|
1 ### | 1 ### |
2 ### Compiler flags | 2 ### Compiler flags |
3 ### | 3 ### |
4 CXXFLAGS += -O3 -W -Wall -std=c++11 | 4 ifneq ($(ASAN),) |
5 CXXFLAGS += -fsanitize=address | |
6 LDFLAGS += -lasan | |
7 else | |
8 CXXFLAGS += -O3 | |
5 LDFLAGS += | 9 LDFLAGS += |
10 endif | |
11 | |
12 CXXFLAGS += -g -W -Wall -std=c++11 | |
6 CXXFLAGS += $(SDL_CFLAGS) $(GL_CFLAGS) | 13 CXXFLAGS += $(SDL_CFLAGS) $(GL_CFLAGS) |
7 | 14 |
8 | 15 |
9 ### | 16 ### |
10 ### Tools, paths and directories | 17 ### Tools, paths and directories |