Bug 1309573 - Part 2: Define MOZ_HAS_MOZGLUE in various places so that the crash reason gets used. r=glandium

--HG--
extra : rebase_source : d55e8dd75469759f333366bdf9662178ff0a2474
This commit is contained in:
Emanuel Hoogeveen 2016-11-08 03:53:00 -05:00
Родитель 515f250ac5
Коммит e0a81d7503
10 изменённых файлов: 11 добавлений и 4 удалений

Просмотреть файл

@ -58,12 +58,14 @@ def GeckoBinary(linkage='dependent', msvcrt='dynamic', mozglue=None):
LDFLAGS += CONFIG['MOZ_GLUE_WRAP_LDFLAGS']
if mozglue == 'program':
USE_LIBS += ['mozglue']
DEFINES['MOZ_HAS_MOZGLUE'] = True
if CONFIG['MOZ_GLUE_IN_PROGRAM']:
if CONFIG['GNU_CC']:
LDFLAGS += ['-rdynamic']
if CONFIG['MOZ_MEMORY']:
USE_LIBS += ['memory']
elif mozglue == 'library':
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
if not CONFIG['MOZ_GLUE_IN_PROGRAM']:
USE_LIBS += ['mozglue']
else:

2
config/external/fdlibm/moz.build поставляемый
Просмотреть файл

@ -4,8 +4,6 @@
# 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/.
Library('fdlibm')
with Files('**'):
BUG_COMPONENT = ('Core', 'JavaScript Engine')

Просмотреть файл

@ -68,6 +68,8 @@ CONFIGURE_DEFINE_FILES += [
]
if not CONFIG['JS_STANDALONE']:
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
CONFIGURE_SUBST_FILES += [
'../../config/autoconf-js.mk',
'../../config/emptyvars-js.mk',
@ -658,7 +660,6 @@ if CONFIG['ENABLE_INTL_API']:
]
USE_LIBS += [
'fdlibm',
'nspr',
'zlib',
]

Просмотреть файл

@ -9,6 +9,7 @@ EXPORTS += [
'mozmemory_wrap.h',
]
DEFINES['MOZ_HAS_MOZGLUE'] = True
DEFINES['MOZ_MEMORY_IMPL'] = True
if CONFIG['MOZ_REPLACE_MALLOC']:

Просмотреть файл

@ -68,6 +68,7 @@ if CONFIG['GNU_CC']:
CFLAGS += ['-std=gnu99']
DEFINES['abort'] = 'moz_abort'
DEFINES['MOZ_HAS_MOZGLUE'] = True
LOCAL_INCLUDES += [
'!src/include',

Просмотреть файл

@ -28,6 +28,7 @@ if CONFIG['MOZ_UPDATE_CHANNEL'] not in ('release', 'esr'):
DEFINES['abort'] = 'moz_abort'
DEFINES['MOZ_HAS_MOZGLUE'] = True
DEFINES['MOZ_JEMALLOC_IMPL'] = True
#XXX: PGO on Linux causes problems here

Просмотреть файл

@ -8,6 +8,7 @@ Program('logalloc-replay')
SOURCES += [
'../FdPrintf.cpp',
'/mfbt/Assertions.cpp',
'Replay.cpp',
]

Просмотреть файл

@ -8,7 +8,7 @@ EXPORTS += [
'fdlibm.h',
]
FINAL_LIBRARY = 'fdlibm'
FINAL_LIBRARY = 'js'
if CONFIG['GNU_CXX']:
CXXFLAGS += [

Просмотреть файл

@ -91,6 +91,7 @@ USE_LIBS += [
]
DEFINES['IMPL_MFBT'] = True
LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
LDFLAGS += CONFIG['MOZ_GLUE_WRAP_LDFLAGS']

Просмотреть файл

@ -12,6 +12,7 @@ SimplePrograms([
LOCAL_INCLUDES += ['..']
USE_LIBS += [
'linker',
'mfbt',
]
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
DISABLE_STL_WRAPPING = True