Skip to content

Commit

Permalink
support add debug info into build (istio#30490)
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdingbj authored Jan 29, 2021
1 parent fc1367f commit d144e55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.core.mk
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,12 @@ fmt: format-go format-python tidy-go
buildcache:
GOBUILDFLAGS=-i $(MAKE) -e -f Makefile.core.mk build

ifeq ($(DEBUG),1)
# gobuild script uses custom linker flag to set the variables.
RELEASE_LDFLAGS=''
else
RELEASE_LDFLAGS='-extldflags -static -s -w'
endif

# List of all binaries to build
# We split the binaries into "agent" binaries and standard ones. This corresponds to build "agent".
Expand Down

0 comments on commit d144e55

Please sign in to comment.