gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: common.make -- debug=yes


From: Stefan Bidigaray
Subject: Re: common.make -- debug=yes
Date: Thu, 18 Aug 2016 18:23:33 -0400

Why would you want to get rid of the optimization flag? Building with debugging on does not preclude optimization.


On Aug 18, 2016 18:12, "Giah de Barag" <address@hidden> wrote:
Would you review these two lines intended for insertion at common.make:756 . . .

ifeq ($(debug), yes)
  # Optimization flags are filtered out as they make debugging harder.
  OPTFLAG := $(filter-out -O%, $(OPTFLAG))
  CCFLAGS := $(filter-out -O%, $(CCFLAGS))
  ADDITIONAL_FLAGS := $(filter-out -O%, $(ADDITIONAL_FLAGS))
  # If OPTFLAG does not already include -g, add it here.
  ifneq ($(filter -g, $(OPTFLAG)), -g)
    ADDITIONAL_FLAGS += -g
  endif

. . . without which debug=yes does not get rid of the -O2 flag.


_______________________________________________
Gnustep-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gnustep-dev


reply via email to

[Prev in Thread] Current Thread [Next in Thread]