2012-02-02 10:09:00 +04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
2004-12-07 01:39:54 +03:00
|
|
|
|
2014-07-23 08:33:09 +04:00
|
|
|
include $(topsrcdir)/toolkit/library/libxul.mk
|
|
|
|
|
2014-08-13 22:24:15 +04:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2009-11-02 12:17:27 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2013-03-11 22:47:40 +04:00
|
|
|
.PHONY: gtestxul
|
2014-03-31 15:21:38 +04:00
|
|
|
gtestxul:
|
2017-02-07 01:34:07 +03:00
|
|
|
$(MAKE) -C $(DEPTH) toolkit/library/gtest/target LINK_GTEST_DURING_COMPILE=1
|
Bug 1464522 - Count static initializers from the crash reporter symbol files. r=froydnj
The crash reporter symbol files are the easiest cross-platform way to
find static initializers. While some types of static initializers (e.g.
__attribute__(constructor) functions) don't appear there in a notable
way, the static initializers we do care the most about for tracking do
(static initializers from C++ globals). As a matter of fact, there is
only a difference of 2 compared to the currently reported count of 125
on a linux64 build, so this is a good enough approximation. And allows
us to easily track the count on Android, OSX and Windows builds, which
we currently don't do.
The tricky part is that the symbol files are in
dist/crashreporter-symbols/$lib/$fileid/$lib.sym, and $fileid is hard to
figure out. There is a `fileid` tool in testing/tools, but it is a
target binary, meaning it's not available on cross builds (OSX,
Android).
So the simplest is just to gather the data while creating the symbol
files, which unfortunately requires to go through some hoops to make it
happen for just the files we care about.
--HG--
extra : rebase_source : 458fed1ffd6f9294eefef61f10ff7a284af0d986
2018-05-29 02:48:47 +03:00
|
|
|
|
|
|
|
DUMP_SYMBOLS_FLAGS = --count-ctors
|