зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
515f250ac5
Коммит
e0a81d7503
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче