db/sqlite3/src/Makefile.in
author Phil Ringnalda <philringnalda@gmail.com>
Sat, 24 Jan 2015 08:27:17 -0800
changeset 225517 1cf171c1a17746ee518a39ab41864c8e29a43686
parent 198272 6b285759568cb0b743cb9497e021f6552cc7e349
child 254182 782e9a74bd4a7a9d6a1a8ac436cdd3075db54bc1
permissions -rw-r--r--
Merge m-i to m-c, a=merge

#
# 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