diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2012-04-23 23:02:06 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-04-23 23:07:16 +0200 |
commit | 0c00198b97e9dd7ee4aab0cb2f0e0fed681c852c (patch) | |
tree | 5a71fec677f6d8f0c166b46479b873b0d73af97e /solenv/gbuild | |
parent | c8677d3e573c69dd789d8f36b92ff6b6a874919d (diff) |
Resurrect TIMELOG absolute time logging facility
This somehow fell through the cracks of gbuildification -
make timelog=t now again enables those RTL_LOGFILE_ macros.
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/gbuild.help.txt | 4 | ||||
-rw-r--r-- | solenv/gbuild/gbuild.mk | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild.help.txt b/solenv/gbuild/gbuild.help.txt index 3e170754f384..6506022934e7 100644 --- a/solenv/gbuild/gbuild.help.txt +++ b/solenv/gbuild/gbuild.help.txt @@ -62,6 +62,10 @@ INTERACTIVE VARIABLES: 3... = symbols + no optimizations + extra debug output (usually extremely verbose). Levels > 2 are not used very much. + TIMELOG / timelog + If not empty enable the RTL_LOGFILE_* time logging facility. + export RTL_LOGFILE=rtl_logfile.nopid when running office, to + get timestamps written out. YACCFLAGS Add as flags for YACC parser generator invocation. CPPFLAGS Add as preprocessor flags for C/C++/ObjC/ObjC++ compilation. CFLAGS Add as compiler flags for plain C compilation. diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index a37cb8ba7821..578393ed6541 100644 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -91,6 +91,11 @@ else gb_STRIP := $(false) endif +gb_TIMELOG := 0 +ifneq ($(strip $(TIMELOG)$(timelog)),) +gb_TIMELOG := 1 +endif + gb_DEBUGLEVEL := 0 ifneq ($(strip $(DEBUG)$(debug)),) gb_DEBUGLEVEL := 1 @@ -201,6 +206,12 @@ ifneq ($(strip $(SOLAR_JAVA)),) gb_GLOBALDEFS += -DSOLAR_JAVA endif +ifeq ($(gb_TIMELOG),1) +gb_GLOBALDEFS += \ + -DTIMELOG \ + +endif + ifeq ($(gb_DEBUGLEVEL),0) gb_GLOBALDEFS += \ -DOPTIMIZE \ |