diff --git a/build/pgo/Makefile.in b/build/pgo/Makefile.in index 5f2eb5f96203..acbff0512359 100644 --- a/build/pgo/Makefile.in +++ b/build/pgo/Makefile.in @@ -55,6 +55,16 @@ include $(topsrcdir)/config/rules.mk TARGET_DEPTH = ../.. include $(topsrcdir)/build/automation-build.mk +ifeq ($(OS_ARCH),Darwin) +ifdef MOZ_DEBUG +browser_path = \"$(TARGET_DIST)/$(MOZ_APP_NAME)/$(MOZ_APP_DISPLAYNAME)Debug.app/Contents/MacOS/$(PROGRAM)\" +else +browser_path = \"$(TARGET_DIST)/$(MOZ_APP_NAME)/$(MOZ_APP_DISPLAYNAME).app/Contents/MacOS/$(PROGRAM)\" +endif +else +browser_path = \"$(TARGET_DIST)/$(MOZ_APP_NAME)/$(PROGRAM)\" +endif + # Stuff to make a build with a profile _PGO_FILES = \ diff --git a/client.mk b/client.mk index 33a202563d09..bb338aea1b0e 100644 --- a/client.mk +++ b/client.mk @@ -211,6 +211,7 @@ endif profiledbuild:: $(MAKE) -f $(TOPSRCDIR)/client.mk build MOZ_PROFILE_GENERATE=1 + $(MAKE) -C $(PGO_OBJDIR) package OBJDIR=${PGO_OBJDIR} $(PROFILE_GEN_SCRIPT) $(MAKE) -f $(TOPSRCDIR)/client.mk maybe_clobber_profiledbuild $(MAKE) -f $(TOPSRCDIR)/client.mk build MOZ_PROFILE_USE=1 diff --git a/config/rules.mk b/config/rules.mk index fcb7709ba567..2cdef477eabc 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -975,11 +975,11 @@ ifneq (,$(SHARED_LIBRARY)$(PROGRAM)) export:: ifdef PROGRAM $(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \ - $(PROGRAM:$(BIN_SUFFIX)=) $(DIST)/bin + $(PROGRAM:$(BIN_SUFFIX)=) $(DIST)/$(MOZ_APP_NAME) endif ifdef SHARED_LIBRARY $(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \ - $(SHARED_LIBRARY_NAME) $(DIST)/bin + $(SHARED_LIBRARY_NAME) $(DIST)/$(MOZ_APP_NAME) endif endif # SHARED_LIBRARY || PROGRAM endif # WINNT_ diff --git a/js/src/config/rules.mk b/js/src/config/rules.mk index fcb7709ba567..2cdef477eabc 100644 --- a/js/src/config/rules.mk +++ b/js/src/config/rules.mk @@ -975,11 +975,11 @@ ifneq (,$(SHARED_LIBRARY)$(PROGRAM)) export:: ifdef PROGRAM $(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \ - $(PROGRAM:$(BIN_SUFFIX)=) $(DIST)/bin + $(PROGRAM:$(BIN_SUFFIX)=) $(DIST)/$(MOZ_APP_NAME) endif ifdef SHARED_LIBRARY $(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \ - $(SHARED_LIBRARY_NAME) $(DIST)/bin + $(SHARED_LIBRARY_NAME) $(DIST)/$(MOZ_APP_NAME) endif endif # SHARED_LIBRARY || PROGRAM endif # WINNT_