Mercurial > hg > forks > gldragon
comparison Makefile.gen @ 99:22774e3f2a89
Add TSAN compile-time support via make parameter TSAN.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 05 Jan 2022 05:37:57 +0200 |
parents | cc7fcaf139ef |
children | 8059aad101d1 |
comparison
equal
deleted
inserted
replaced
98:44e3656f4c83 | 99:22774e3f2a89 |
---|---|
3 ### | 3 ### |
4 ifneq ($(ASAN),) | 4 ifneq ($(ASAN),) |
5 CXXFLAGS += -fsanitize=address | 5 CXXFLAGS += -fsanitize=address |
6 LDFLAGS += -lasan | 6 LDFLAGS += -lasan |
7 else | 7 else |
8 ifneq ($(TSAN),) | |
9 CXXFLAGS += -fsanitize=thread | |
10 LDFLAGS += -ltsan | |
11 else | |
8 CXXFLAGS += -O3 | 12 CXXFLAGS += -O3 |
9 LDFLAGS += | 13 LDFLAGS += |
14 endif | |
10 endif | 15 endif |
11 | 16 |
12 CXXFLAGS += -g -W -Wall -std=c++11 | 17 CXXFLAGS += -g -W -Wall -std=c++11 |
13 CXXFLAGS += $(SDL_CFLAGS) $(GL_CFLAGS) | 18 CXXFLAGS += $(SDL_CFLAGS) $(GL_CFLAGS) |
14 | 19 |