zturner added a comment.

To be clear, I would like this Makefile to turn into the following:

LEVEL = ../../../make

CXX_SOURCES = main.cpp length.cpp

DEBUG_INFO_FULL = True
DEBUG_INFO_LIMITED = True

And that's it.  You shouldn't need anything else.  Whatever needs to happen
in Makefile.rules to make this work should be done.

By default, DEBUG_INFO_FULL should be True and DEBUG_INFO_LIMITED should be
false.  This will allow all other makefiles that don't care about the debug
info to work as they normally do.  If neither variable is True, it won't
use -g.  If only DEBUG_INFO_FULL is True, it will build one target and use
-fno-limit-debug-info.  If only DEBUG_INFO_LIMITED is true, it will build
one target and use -flimit-debug-info.  If both are true, it will build two
targets, one for each case.

Does this seem reasonable?


http://reviews.llvm.org/D13066



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to