Skip to content

Commit

Permalink
Added -g and -rdynamic compiler/linker options for release mode build…
Browse files Browse the repository at this point in the history
…s on linux to enable call stack generation in release builds
  • Loading branch information
amitaga committed Jan 26, 2016
1 parent 3e5ff05 commit aace504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ ifeq ("$(BUILDTYPE)","release")
GENCODE_FLAGS := $(GENCODE_SM20) $(GENCODE_SM30) $(GENCODE_SM35) $(GENCODE_SM50)
endif
CXXFLAGS += -O4
CXXFLAGS += -g -O4
LDFLAGS += -rdynamic
CPPFLAGS += -DNDEBUG
CUFLAGS += -O3 -use_fast_math -lineinfo $(GENCODE_FLAGS)
endif
Expand Down

0 comments on commit aace504

Please sign in to comment.