forked from cerc-io/laconicd-deprecated
debug(app): add flag to disable optimized build for remote debugging (#1549)
Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
parent
78e6df2ed2
commit
aeea656868
6
Makefile
6
Makefile
@ -110,6 +110,12 @@ ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS)))
|
|||||||
BUILD_FLAGS += -trimpath
|
BUILD_FLAGS += -trimpath
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# check if no optimization option is passed
|
||||||
|
# used for remote debugging
|
||||||
|
ifneq (,$(findstring nooptimization,$(COSMOS_BUILD_OPTIONS)))
|
||||||
|
BUILD_FLAGS += -gcflags "all=-N -l"
|
||||||
|
endif
|
||||||
|
|
||||||
# # The below include contains the tools and runsim targets.
|
# # The below include contains the tools and runsim targets.
|
||||||
# include contrib/devtools/Makefile
|
# include contrib/devtools/Makefile
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user