зеркало из https://github.com/mozilla/pjs.git
bug 467271 - JS not being PGOed on win32. r=bsmedberg
This commit is contained in:
Родитель
a90ec7178d
Коммит
d68bfd3a7c
|
@ -23,7 +23,7 @@ def MergePGOFiles(basename, pgddir, pgcdir):
|
|||
if not os.path.isfile(pgdfile):
|
||||
return
|
||||
for file in os.listdir(pgcdir):
|
||||
if file.startswith(basename) and file.endswith(".pgc"):
|
||||
if file.startswith(basename+"!") and file.endswith(".pgc"):
|
||||
try:
|
||||
pgcfile = os.path.normpath(os.path.join(pgcdir, file))
|
||||
subprocess.call(['pgomgr', '-merge',
|
||||
|
|
|
@ -940,21 +940,25 @@ ifeq ($(OS_ARCH)_$(GNU_CC)$(INTERNAL_TOOLS), WINNT_)
|
|||
# in both stages so you can do depend builds with PGO.
|
||||
ifdef SHARED_LIBRARY
|
||||
$(SHARED_LIBRARY): FORCE
|
||||
BINARY_BASENAME = $(SHARED_LIBRARY:$(DLL_SUFFIX)=)
|
||||
endif
|
||||
ifdef PROGRAM
|
||||
$(PROGRAM): FORCE
|
||||
BINARY_BASENAME = $(PROGRAM:$(BIN_SUFFIX)=)
|
||||
endif
|
||||
|
||||
ifdef MOZ_PROFILE_USE
|
||||
# In the second pass, we need to merge the pgc files into the pgd file.
|
||||
# The compiler would do this for us automatically if they were in the right
|
||||
# place, but they're in dist/bin.
|
||||
ifdef BINARY_BASENAME
|
||||
ifneq (,$(SHARED_LIBRARY)$(PROGRAM))
|
||||
export::
|
||||
ifdef PROGRAM
|
||||
$(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \
|
||||
$(BINARY_BASENAME) $(DIST)/bin
|
||||
$(PROGRAM:$(BIN_SUFFIX)=) $(DIST)/bin
|
||||
endif
|
||||
ifdef SHARED_LIBRARY
|
||||
$(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \
|
||||
$(LIBRARY_NAME) $(DIST)/bin
|
||||
endif
|
||||
endif
|
||||
endif # MOZ_PROFILE_USE
|
||||
endif # WINNT_
|
||||
|
|
|
@ -23,7 +23,7 @@ def MergePGOFiles(basename, pgddir, pgcdir):
|
|||
if not os.path.isfile(pgdfile):
|
||||
return
|
||||
for file in os.listdir(pgcdir):
|
||||
if file.startswith(basename) and file.endswith(".pgc"):
|
||||
if file.startswith(basename+"!") and file.endswith(".pgc"):
|
||||
try:
|
||||
pgcfile = os.path.normpath(os.path.join(pgcdir, file))
|
||||
subprocess.call(['pgomgr', '-merge',
|
||||
|
|
|
@ -940,21 +940,25 @@ ifeq ($(OS_ARCH)_$(GNU_CC)$(INTERNAL_TOOLS), WINNT_)
|
|||
# in both stages so you can do depend builds with PGO.
|
||||
ifdef SHARED_LIBRARY
|
||||
$(SHARED_LIBRARY): FORCE
|
||||
BINARY_BASENAME = $(SHARED_LIBRARY:$(DLL_SUFFIX)=)
|
||||
endif
|
||||
ifdef PROGRAM
|
||||
$(PROGRAM): FORCE
|
||||
BINARY_BASENAME = $(PROGRAM:$(BIN_SUFFIX)=)
|
||||
endif
|
||||
|
||||
ifdef MOZ_PROFILE_USE
|
||||
# In the second pass, we need to merge the pgc files into the pgd file.
|
||||
# The compiler would do this for us automatically if they were in the right
|
||||
# place, but they're in dist/bin.
|
||||
ifdef BINARY_BASENAME
|
||||
ifneq (,$(SHARED_LIBRARY)$(PROGRAM))
|
||||
export::
|
||||
ifdef PROGRAM
|
||||
$(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \
|
||||
$(BINARY_BASENAME) $(DIST)/bin
|
||||
$(PROGRAM:$(BIN_SUFFIX)=) $(DIST)/bin
|
||||
endif
|
||||
ifdef SHARED_LIBRARY
|
||||
$(PYTHON) $(topsrcdir)/build/win32/pgomerge.py \
|
||||
$(LIBRARY_NAME) $(DIST)/bin
|
||||
endif
|
||||
endif
|
||||
endif # MOZ_PROFILE_USE
|
||||
endif # WINNT_
|
||||
|
|
Загрузка…
Ссылка в новой задаче