Kaydet (Commit) 40763e05 authored tarafından Lubos Lunak's avatar Lubos Lunak Kaydeden (comit) Luboš Luňák

disable gb_COMPILEROPTFLAGS in debug mode

This means that modules where --enable-selective-debuginfo disables -g
do not revert back to -O just because -g is not wanted there. As this
will presumably happen with modules the developer does not care about,
there's no gain from the -O and the compile there would take longer.

Change-Id: Ied84d2f69035d6580279b0657c5a5ba5440c6f16
üst 84b4293e
......@@ -154,7 +154,12 @@ endif
gb_DEBUG_CFLAGS := -ggdb2 -finline-limit=0 -fno-inline -fno-default-inline
ifneq ($(gb_DEBUGLEVEL),0)
gb_COMPILEROPTFLAGS :=
else
gb_COMPILEROPTFLAGS := $(gb_COMPILERDEFAULTOPTFLAGS)
endif
gb_COMPILERNOOPTFLAGS := -O0
# LinkTarget class
......
......@@ -153,7 +153,12 @@ else
gb_LINKEROPTFLAGS := -Wl,-O1
endif
ifneq ($(gb_DEBUGLEVEL),0)
gb_COMPILEROPTFLAGS :=
else
gb_COMPILEROPTFLAGS := $(gb_COMPILERDEFAULTOPTFLAGS)
endif
gb_COMPILERNOOPTFLAGS := -O0
gb_LINKERSTRIPDEBUGFLAGS := -Wl,-S
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment