what is the correct way to build a pgo firefox on win?

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
Post Reply
steve3d
Posts: 1
Joined: October 30th, 2013, 12:06 am

what is the correct way to build a pgo firefox on win?

Post by steve3d »

I'm using this as .mozconfig

Code: Select all

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj-@CONFIG_GUESS@
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options MOZ_PGO=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options AUTOCLOBBER=1

# Options for 'configure' (same as command-line options).
#ac_add_options --target=x86_64-pc-mingw32
#ac_add_options --host=x86_64-pc-mingw32
ac_add_options --with-windows-version=601
ac_add_options --enable-application=browser
ac_add_options --enable-update-channel=release
ac_add_options --enable-update-packaging
ac_add_options '--enable-optimize=-O1isy -GF -arch:AVX -fp:precise'
ac_add_options --enable-ui-locale=zh-CN
ac_add_options --with-l10n-base=..
ac_add_options --enable-jemalloc
ac_add_options --enable-official-branding
ac_add_options --enable-shared-js


and then I use build/pymake/make.py -f client.mk profiledbuild -j8 in mozilla-release directory to try to build a pgo version of firefox under windows, and I'm using vs2012.3.

but strange things happend, there is no $(MOZ_OBJDIR)/_profile/ folder in obj-i686-pc-mingw32, then my build stops, and give me error like pgo-profile-run target don't exists.

So how can I automatically build a pgo version of recent firefox under windows?
xunxun1982
Posts: 311
Joined: June 20th, 2011, 10:37 am

Re: what is the correct way to build a pgo firefox on win?

Post by xunxun1982 »

whardman
Posts: 17
Joined: July 8th, 2013, 5:08 am

Re: what is the correct way to build a pgo firefox on win?

Post by whardman »

xunxun1982,

Can you post the answer to this here? Unfortunately, I can't read Chinese, and Google Translate isn't too helpful. I tried to do what I think it says but I still get the same error. I am building 64-bit not 32-bit, does that make a difference?
xunxun1982
Posts: 311
Joined: June 20th, 2011, 10:37 am

Re: what is the correct way to build a pgo firefox on win?

Post by xunxun1982 »

whardman wrote:xunxun1982,

Can you post the answer to this here? Unfortunately, I can't read Chinese, and Google Translate isn't too helpful. I tried to do what I think it says but I still get the same error. I am building 64-bit not 32-bit, does that make a difference?

Well, maybe there is a better way.
You can add these code to Makefile.in

Code: Select all

pgo-profile-run:
   $(PYTHON) $(topsrcdir)/build/pgo/profileserver.py $(EXTRA_TEST_ARGS)
Post Reply