File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,14 @@ GITREVDATE=$(shell git log -n 1 --format="%cd" --date=format:%Y%m%d-%H%M%S)
7373# Reduces build time and binary sizes considerably.
7474# That's only needed if you use gdb or nm.
7575# If you need that, build manually without these flags.
76- GOFLAGS := "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=$(REV ) -X 'github.com/google/syzkaller/prog.gitRevisionDate=$(GITREVDATE ) '"
76+ LDFLAGS := ""
77+ DFLAGS := ""
78+ ifeq ("$(DEBUG ) ", "true")
79+ DFLAGS := -gcflags="all=-N -l"
80+ else
81+ LDFLAGS := -s -w
82+ endif
83+ GOFLAGS := "-ldflags=$(LDFLAGS ) -X github.com/google/syzkaller/prog.GitRevision=$(REV ) -X github.com/google/syzkaller/prog.gitRevisionDate=$(GITREVDATE ) $(DFLAGS ) "
7784ifneq ("$(GOTAGS ) ", "")
7885 GOFLAGS += " -tags=$(GOTAGS)"
7986endif
You can’t perform that action at this time.
0 commit comments