Skip to content

Commit

Permalink
Backed out changeset a77fb6a85fc8 (bug 1315695) for breaking PGO
Browse files Browse the repository at this point in the history
  • Loading branch information
indygreg committed Nov 16, 2016
1 parent 1935d9f commit 2763ad0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,8 @@ ifdef MSMANIFEST_TOOL
endif # MSVC with manifest tool
ifdef MOZ_PROFILE_GENERATE
# touch it a few seconds into the future to work around FAT's
# 2-second granularity. We can't touch `touch -t` here because it isn't timezone
# aware.
$(PYTHON) -c 'import os, time; now = int(time.time()); os.utime("pgo.relink", (now + 5, now + 5));'
# 2-second granularity
touch -t `date +%Y%m%d%H%M.%S -d 'now+5seconds'` pgo.relink
endif
else # !WINNT || GNU_CC
$(EXPAND_CCC) -o $@ $(CXXFLAGS) $(PROGOBJS) $(RESFILE) $(WIN32_EXE_LDFLAGS) $(LDFLAGS) $(WRAP_LDFLAGS) $(STATIC_LIBS) $(MOZ_PROGRAM_LDFLAGS) $(SHARED_LIBS) $(EXTRA_LIBS) $(OS_LIBS) $(BIN_FLAGS) $(EXE_DEF_FILE)
Expand Down
5 changes: 2 additions & 3 deletions nsprpub/config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,8 @@ ifdef MT
endif # MSVC with manifest tool
ifdef MOZ_PROFILE_GENERATE
# touch it a few seconds into the future to work around FAT's
# 2-second granularity. We can't touch `touch -t` here because it isn't timezone
# aware.
$(PYTHON) -c 'import os, time; now = int(time.time()); os.utime("pgo.relink", (now + 5, now + 5));'
# 2-second granularity
touch -t `date +%Y%m%d%H%M.%S -d "now+5seconds"` pgo.relink
endif # MOZ_PROFILE_GENERATE
else # WINNT && !GCC
$(CC) -o $@ $(CFLAGS) $(OBJS) $(LDFLAGS) $(WRAP_LDFLAGS)
Expand Down

0 comments on commit 2763ad0

Please sign in to comment.