Closed wagesj45 closed 9 months ago
@wagesj45 Here you go! > https://github.com/Alex313031/Mercury/commit/5f762574700e542480eb375d01e9d643cc6ba011
You should now be able to use ./setup.sh --cross-avx2
Note, on top of the normal things to build, you will also need to install icoutils and msitools like sudo apt install icoutils msitools
Also linted a few things, and added all this to the Mercury-Win7 repo too.
Preliminary testing gave me an executable, but packaging the installer failed. I'm going to try again on a fresh Ubuntu Server installation, since that distro is suggested by the official Firefox documentation. I really appreciate the help, though! Will update when I figure out more.
So for future reference, this config does indeed work. I switched to a fresh install of Ubuntu Server and was able to install all dependencies and build successfully. I really appreciate your help!
I'm attempting to set up an automated build process on a Debian Linux server. Having cloned the Mercury source, I followed all the steps in the
BUILDING.md
documents for the--release
trunk and--cross
setup value. This build process completes and runs fine on Windows.What I'm struggling to do is convert the
mozconfig
values frommozconfigs/mozconfig-win-avx2
. Specifically, I'd like to enableAVX2
support and target theznver3
orx86-64-v3
architecture. A few things I've noticed:AVX
is enabled, notAVX2
WIN32_REDIST_DIR
, that looks like we are assuming we're building on Windows using the MozillaBuild console (/c/... directory structure).-mavx -maes
is used instead of-march=x86-64-v3
Is there now, or could there be, a setup value that can specify march value and
AVX
support? And is there a requirement for these specifications (AVX2
,march=x86-64-v3
) that require the Microsoft C++ compiler specified inWIN32_REDIST_DIR
? Is there a method I could use to translate the values frommozconfig-win-avx2
tomozconfig-win-cross
?