зеркало из https://github.com/mozilla/gecko-dev.git
33 строки
961 B
Makefile
33 строки
961 B
Makefile
#
|
|
# 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/.
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
DEFFILE = $(CURDIR)/sqlite-processed.def
|
|
|
|
GARBAGE += \
|
|
$(DEFFILE) \
|
|
$(NULL)
|
|
|
|
# We have to preprocess our def file because we need different symbols in debug
|
|
# builds exposed that are not built in non-debug builds.
|
|
$(DEFFILE): sqlite.def
|
|
@$(call py_action,preprocessor,$(DEFINES) $(XULPPFLAGS) \
|
|
$(srcdir)/sqlite.def -o $(DEFFILE))
|
|
endif
|
|
|
|
# XXX Force -O2 optimisation on Mac because using the default -O3 causes
|
|
# crashes. See bug 676499.
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
MODULE_OPTIMIZE_FLAGS = -O2
|
|
endif
|
|
|
|
# Force /O2 optimisation on Windows because using the default /O1 causes
|
|
# crashes with MSVC2005 and PGO. See bug 719584.
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
MODULE_OPTIMIZE_FLAGS = -O2
|
|
endif
|