Skip to content
Snippets Groups Projects
Commit 72cdd379 authored by Gijs Kruitbosch's avatar Gijs Kruitbosch
Browse files

Bug 1557762 - ensure we define NS_FREE_PERMANENT_DATA for single-stage pgo builds, r=chmanchester

Differential Revision: https://phabricator.services.mozilla.com/D35469

--HG--
extra : moz-landing-system : lando
parent fa2fa557
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,7 @@ endif
# Enable profile-based feedback
ifneq (1,$(NO_PROFILE_GUIDED_OPTIMIZE))
ifdef MOZ_PROFILE_GENERATE
PGO_CFLAGS += -DNS_FREE_PERMANENT_DATA=1
PGO_CFLAGS += $(if $(filter $(notdir $<),$(notdir $(NO_PROFILE_GUIDED_OPTIMIZE))),,$(PROFILE_GEN_CFLAGS))
PGO_LDFLAGS += $(PROFILE_GEN_LDFLAGS)
ifeq (WINNT,$(OS_ARCH))
......
......@@ -172,11 +172,13 @@
* if we're using _exit. Bug 1555974 covers improving this.
*
*/
#ifndef NS_FREE_PERMANENT_DATA
#if defined(NS_BUILD_REFCNT_LOGGING) || defined(MOZ_VALGRIND) || \
defined(MOZ_ASAN) || defined(MOZ_CODE_COVERAGE) || \
defined(MOZ_PROFILE_GENERATE)
# define NS_FREE_PERMANENT_DATA
#endif
#endif
/**
* NS_NO_VTABLE is emitted by xpidl in interface declarations whenever
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment