. $topsrcdir/browser/config/mozconfig

#ac_add_options --enable-official-branding
ac_add_options --with-branding=browser/branding/nightly
export MOZ_OPTIMIZE_LDFLAGS="-opt:ref,icf -LARGEADDRESSAWARE portable32.lib"
mk_add_options MOZ_OPTIMIZE_LDFLAGS="-opt:ref,icf -LARGEADDRESSAWARE portable32.lib"
#export MOZ_OPTIMIZE_LDFLAGS="-opt:ref,icf -LARGEADDRESSAWARE"
#mk_add_options MOZ_OPTIMIZE_LDFLAGS="-opt:ref,icf -LARGEADDRESSAWARE"
export PATH=/c/Users/yanzi/.cargo/bin:$PATH
#export CC="e:/LLVM/bin/clang-cl.exe"
#export CXX="e:/LLVM/bin/clang-cl.exe"
ac_add_options --with-libclang-path="e:/LLVM_x64/bin"
ac_add_options --with-clang-path="e:/LLVM_x64/bin/clang-cl.exe"


ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-jemalloc
ac_add_options --disable-maintenance-service
ac_add_options --enable-update-channel=release
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
ac_add_options --enable-debug-symbols
ac_add_options --disable-signmar
ac_add_options --disable-parental-controls
ac_add_options --with-visual-studio-version=2017
#ac_add_options --with-visual-studio-version=2015
ac_add_options --enable-rust-simd
#ac_add_options --LLVM_CONFIG=e:/llvm-config
#ac_add_options MOZ_PGO=1

# Libportable
#ac_add_options --enable-libportable-shared
#ac_add_options --enable-libportable-static

##ac_add_options --enable-optimize="-O2 -fp:precise -arch:SSE2 -DTT_MEMUTIL -FI portable.h"
ac_add_options --enable-optimize="-O2 -arch:SSE2 -DTT_MEMUTIL -FI portable.h"
#ac_add_options --enable-optimize="-O2 -fp:precise -arch:SSE2"

# for auto pgo build
mk_add_options MOZ_MAKE_FLAGS="-j10"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-pgo_x32
#mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
#mk_add_options PROFILE_GEN_SCRIPT='python E:/SystemTools/win32_Firefox/stopmsg.py'
#mk_add_options PROFILE_GEN_SCRIPT='cscript E:/SystemTools/win32_Firefox/PgoMsg.vbs'
mk_add_options PROFILE_GEN_SCRIPT='cscript F:/PgoMsg.vbs'

# crt dir vc14
#WIN32_REDIST_DIR=$VCINSTALLDIR/redist/x86/Microsoft.VC140.CRT
