Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Introduce a developer mode option in Makefile #4364

Merged
merged 1 commit into from
Dec 28, 2016

Conversation

howard0su
Copy link
Contributor

this option will enable two addtionals for now:

  1. Create symbol even for optimized build
  2. Enforce warning as error

while I am here, clean up all warnings so that I can get a clean build in developer mode.

this option will enable two addtionals for now:
1. Create symbol even for optimized build
2. Enforce warning as error

while I am here, clean up all warnings so that I can get a clean build in developer mode.
@howard0su
Copy link
Contributor Author

I don't know what to config Travis CI to enable DEV=1 to enforce zero warning.

@@ -31,6 +31,10 @@ include $(DMLC_CORE)/make/dmlc.mk
WARNFLAGS= -Wall
CFLAGS = -DMSHADOW_FORCE_STREAM $(WARNFLAGS)

ifeq ($(DEV), 1)
CFLAGS += -g -Werror
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need -g just to generate symbol. I think there is an option to do it without turning off optimization

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i didn't get you. -g is not enable debug but just generate symbol.

   -g  Produce debugging information in the operating system's native format (stabs, COFF, XCOFF, or DWARF 2).  GDB can
       work with this debugging information.

@piiswrong piiswrong merged commit e6cc1b7 into apache:nnvm Dec 28, 2016
@howard0su howard0su deleted the devmode branch December 29, 2016 02:29
piiswrong pushed a commit to piiswrong/mxnet that referenced this pull request Dec 29, 2016
this option will enable two addtionals for now:
1. Create symbol even for optimized build
2. Enforce warning as error

while I am here, clean up all warnings so that I can get a clean build in developer mode.
piiswrong pushed a commit to piiswrong/mxnet that referenced this pull request Dec 29, 2016
this option will enable two addtionals for now:
1. Create symbol even for optimized build
2. Enforce warning as error

while I am here, clean up all warnings so that I can get a clean build in developer mode.
piiswrong pushed a commit that referenced this pull request Dec 29, 2016
this option will enable two addtionals for now:
1. Create symbol even for optimized build
2. Enforce warning as error

while I am here, clean up all warnings so that I can get a clean build in developer mode.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants