diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-10-22 14:46:59 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-11-03 14:34:58 -0800 |
commit | e4dce38d3d19cc36b32c33a87f504bdb6dbb76ae (patch) | |
tree | b282ee4fb1b165ed118025dd54a18f0ec72ee7c2 | |
parent | c7d448429fa264787d231d20bb1d8e2e273e852b (diff) | |
download | webrtc-marshmallow-mr2-release.tar.gz |
Remove __DATE__ and __TIME__ from tracingandroid-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r66android-6.0.1_r65android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r20android-6.0.1_r17android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r41marshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-release
Including __DATE__ and __TIME__ in the binary means that every build of
this library is different, even if the sources are identical. It also
means that every OTA needs to patch this library. Remove __DATE__ and
__TIME__ from the trace build info, just record whether it's a debug or
release build.
Bug: 24204119
Change-Id: I0dfc1479f096197007db1920b89aeb61ea537168
(cherry picked from commit e3422c11696e715e66b1669230410f098bf4c038)
-rw-r--r-- | src/system_wrappers/source/trace_posix.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system_wrappers/source/trace_posix.cc b/src/system_wrappers/source/trace_posix.cc index 1b8dd934d2..18045ca426 100644 --- a/src/system_wrappers/source/trace_posix.cc +++ b/src/system_wrappers/source/trace_posix.cc @@ -33,8 +33,12 @@ #endif #define BUILDTIME __TIME__ #define BUILDDATE __DATE__ +#ifdef __ANDROID__ +#define BUILDINFO BUILDMODE +#else // example: "Oct 10 2002 12:05:30 r" #define BUILDINFO BUILDDATE " " BUILDTIME " " BUILDMODE +#endif namespace webrtc { TracePosix::TracePosix() |