Skip to content

Commit

Permalink
By using -fno-omit-frame-pointer we generate better stack traces for …
Browse files Browse the repository at this point in the history
…sanitizers (google/sanitizers#870)

FossilOrigin-Name: b9ce20f5d7e27c417b041c445dfbd0dd8996fcbeb6a8cebb2579263fe0287f07
  • Loading branch information
silasdb committed Oct 17, 2021
1 parent 4560431 commit 6874b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ OBJS = cache.o \

# TODO: split debug / release build rules
CC ?= gcc
CFLAGS += -fsanitize=address -g -std=c11 -Wall -Wpedantic
CFLAGS += -fsanitize=address -g -std=c11 -Wall -Wpedantic -fno-omit-frame-pointer
LDFLAGS += -lasan

janechat: ${OBJS}
Expand Down

0 comments on commit 6874b1c

Please sign in to comment.