xref: /netbsd-src/external/gpl3/binutils.old/dist/config/bootstrap-debug.mk (revision 16dce51364ebe8aeafbae46bc5aa167b8115bc45)
1*16dce513Schristos# This BUILD_CONFIG option builds checks that toggling debug
2*16dce513Schristos# information generation doesn't affect the generated object code.
3*16dce513Schristos
4*16dce513Schristos# It is very lightweight: in addition to not performing any additional
5*16dce513Schristos# compilation (unlike bootstrap-debug-lean), it actually speeds up
6*16dce513Schristos# stage2, for no debug information is generated when compiling with
7*16dce513Schristos# the unoptimized stage1.
8*16dce513Schristos
9*16dce513Schristos# For more thorough testing, see bootstrap-debug-lean.mk
10*16dce513Schristos
11*16dce513SchristosSTAGE2_CFLAGS += -gtoggle
12*16dce513Schristosdo-compare = $(SHELL) $(srcdir)/contrib/compare-debug $$f1 $$f2
13