Bug 754065 - Port |Bug 744444 - delete CPP_PROG_LINK, purify/quantify targets| and |Bug 606145 part 1 - Properly link host programs written in C++| r=callek
This commit is contained in:
Родитель
03e9482357
Коммит
e4cff2ab7a
|
@ -495,7 +495,6 @@ MOZILLA_OFFICIAL = @MOZILLA_OFFICIAL@
|
|||
# Win32 options
|
||||
MOZ_BROWSE_INFO = @MOZ_BROWSE_INFO@
|
||||
MOZ_TOOLS_DIR = @MOZ_TOOLS_DIR@
|
||||
MOZ_QUANTIFY = @MOZ_QUANTIFY@
|
||||
MSMANIFEST_TOOL = @MSMANIFEST_TOOL@
|
||||
MOZ_GLUE_LDFLAGS = @MOZ_GLUE_LDFLAGS@
|
||||
MOZ_GLUE_PROGRAM_LDFLAGS = @MOZ_GLUE_PROGRAM_LDFLAGS@
|
||||
|
|
|
@ -193,17 +193,6 @@ OS_CFLAGS += -Zi -UDEBUG -DNDEBUG
|
|||
OS_LDFLAGS += -DEBUG -OPT:REF
|
||||
endif # MOZ_DEBUG_SYMBOLS
|
||||
|
||||
ifdef MOZ_QUANTIFY
|
||||
# -FIXED:NO is needed for Quantify to work, but it increases the size
|
||||
# of executables, so only use it if building for Quantify.
|
||||
WIN32_EXE_LDFLAGS += -FIXED:NO
|
||||
|
||||
# We need -OPT:NOICF to prevent identical methods from being merged together.
|
||||
# Otherwise, Quantify doesn't know which method was actually called when it's
|
||||
# showing you the profile.
|
||||
OS_LDFLAGS += -OPT:NOICF
|
||||
endif
|
||||
|
||||
#
|
||||
# Handle trace-malloc in optimized builds.
|
||||
# No opt to give sane callstacks.
|
||||
|
@ -366,8 +355,6 @@ MY_RULES := $(DEPTH)/config/myrules.mk
|
|||
# Default command macros; can be overridden in <arch>.mk.
|
||||
#
|
||||
CCC = $(CXX)
|
||||
PURIFY = purify $(PURIFYOPTIONS)
|
||||
QUANTIFY = quantify $(QUANTIFYOPTIONS)
|
||||
XPIDL_LINK = $(PYTHON) $(LIBXUL_DIST)/sdk/bin/xpt.py link
|
||||
|
||||
INCLUDES = \
|
||||
|
|
|
@ -485,8 +485,8 @@ TAG_PROGRAM = xargs etags -a
|
|||
# (moved this from config.mk so that config.mk can be included
|
||||
# before the CPPSRCS are defined)
|
||||
#
|
||||
ifneq ($(CPPSRCS)$(CMMSRCS),)
|
||||
CPP_PROG_LINK = 1
|
||||
ifneq ($(HOST_CPPSRCS)$(HOST_CMMSRCS),)
|
||||
HOST_CPP_PROG_LINK = 1
|
||||
endif
|
||||
|
||||
#
|
||||
|
@ -988,11 +988,11 @@ ifdef MSMANIFEST_TOOL
|
|||
fi
|
||||
endif # MSVC with manifest tool
|
||||
else
|
||||
ifeq ($(CPP_PROG_LINK),1)
|
||||
ifeq ($(HOST_CPP_PROG_LINK),1)
|
||||
$(HOST_CXX) -o $@ $(HOST_CXXFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(HOST_LIBS) $(HOST_EXTRA_LIBS)
|
||||
else
|
||||
$(HOST_CC) -o $@ $(HOST_CFLAGS) $(HOST_LDFLAGS) $(HOST_PROGOBJS) $(HOST_LIBS) $(HOST_EXTRA_LIBS)
|
||||
endif # CPP_PROG_LINK
|
||||
endif # HOST_CPP_PROG_LINK
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -1043,31 +1043,6 @@ endif
|
|||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# Purify target. Solaris/sparc only to start.
|
||||
# Purify does not recognize "egcs" or "c++" so we go with
|
||||
# "gcc" and "g++" for now.
|
||||
#
|
||||
pure: $(PROGRAM)
|
||||
ifeq ($(CPP_PROG_LINK),1)
|
||||
$(PURIFY) $(CCC) -o $^.pure $(CXXFLAGS) $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
||||
else
|
||||
$(PURIFY) $(CC) -o $^.pure $(CFLAGS) $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
||||
endif
|
||||
ifndef NO_DIST_INSTALL
|
||||
$(INSTALL) $(IFLAGS2) $^.pure $(FINAL_TARGET)
|
||||
endif
|
||||
|
||||
quantify: $(PROGRAM)
|
||||
ifeq ($(CPP_PROG_LINK),1)
|
||||
$(QUANTIFY) $(CCC) -o $^.quantify $(CXXFLAGS) $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
||||
else
|
||||
$(QUANTIFY) $(CC) -o $^.quantify $(CFLAGS) $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS)
|
||||
endif
|
||||
ifndef NO_DIST_INSTALL
|
||||
$(INSTALL) $(IFLAGS2) $^.quantify $(FINAL_TARGET)
|
||||
endif
|
||||
|
||||
ifdef DTRACE_PROBE_OBJ
|
||||
EXTRA_DEPS += $(DTRACE_PROBE_OBJ)
|
||||
endif
|
||||
|
|
|
@ -6088,14 +6088,6 @@ if test -n "$_ENABLE_CODESIGHS"; then
|
|||
fi
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Support for Quantify (Windows)
|
||||
dnl ========================================================
|
||||
MOZ_ARG_ENABLE_BOOL(quantify,
|
||||
[ --enable-quantify Enable Quantify support (Windows only) ],
|
||||
MOZ_QUANTIFY=1,
|
||||
MOZ_QUANTIFY= )
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Support for demangling undefined symbols
|
||||
dnl ========================================================
|
||||
|
@ -6786,7 +6778,6 @@ AC_SUBST(MOZ_ENABLE_PROFILER_SPS)
|
|||
AC_SUBST(MOZ_JPROF)
|
||||
AC_SUBST(MOZ_SHARK)
|
||||
AC_SUBST(MOZ_PROFILING)
|
||||
AC_SUBST(MOZ_QUANTIFY)
|
||||
AC_SUBST(MOZ_LDAP_XPCOM)
|
||||
AC_SUBST(LDAP_CFLAGS)
|
||||
AC_SUBST(LDAP_LIBS)
|
||||
|
|
Загрузка…
Ссылка в новой задаче