forked from BrowserWorks/Waterfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mozconfig-x86_64-pc-windows-msvc
84 lines (77 loc) · 3.27 KB
/
.mozconfig-x86_64-pc-windows-msvc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh
export CROSS_BUILD=1
POLLY="-mllvm -polly -mllvm -polly-2nd-level-tiling -mllvm -polly-loopfusion-greedy -mllvm -polly-pattern-matching-based-opts -mllvm -polly-position=before-vectorizer -mllvm -polly-vectorizer=stripmine"
TOOLS=$HOME/win-cross
WINSYSROOT="$HOME/win-root"
export AR="$HOME/win-cross/clang/bin/llvm-lib"
export CC="$HOME/win-cross/clang/bin/clang-cl"
export CXX="$HOME/win-cross/clang/bin/clang-cl"
export DIA_SDK_PATH="$TOOLS/dia-sdk"
export HOST_CC="$HOME/win-cross/clang/bin/clang"
export HOST_CXX="$HOME/win-cross/clang/bin/clang++"
export LINKER="$HOME/win-cross/clang/bin/lld-link"
export LLVM_DLLTOOL="$HOME/win-cross/clang/bin/llvm-dlltool"
export LLVM_PROFDATA="$HOME/win-cross/clang/bin/llvm-profdata"
export MIDL="$TOOLS/wine/bin/widl"
export MOZ_INCLUDE_SOURCE_INFO=1
export MOZ_STUB_INSTALLER=1
export RC="$HOME/win-cross/clang/bin/llvm-rc"
export WASM_CC="$HOME/win-cross/clang/bin/clang"
export WASM_CXX="$HOME/win-cross/clang/bin/clang++"
export WIN32_REDIST_DIR="$WINSYSROOT"/VC/Redist/MSVC/14.34.31931/x64/Microsoft.VC143.CRT
export WIN_UCRT_REDIST_DIR="$WINSYSROOT/Windows Kits/10/Redist/10.0.22621.0/ucrt/DLLs/x64"
export WINE="$TOOLS/wine/bin/wine64"
export WINEDEBUG=-all
mk_add_options "export PATH=$EXTRA_PATH$PATH"
if test "$WFX_RELEASE" || test "$WFX_PRE_RELEASE"; then
ac_add_options --enable-lto=cross
ac_add_options --enable-optimize="-clang:-march=penryn -clang:-mtune=haswell -clang:-O3 -w"
ac_add_options --enable-release
ac_add_options --enable-rust-simd
ac_add_options RUSTC_OPT_LEVEL=3
export MOZILLA_OFFICIAL=1
export RUSTFLAGS="$RUSTFLAGS -Ctarget-cpu=penryn"
fi
ac_add_options --disable-bits-download
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
ac_add_options --disable-dmd
ac_add_options --disable-geckodriver
ac_add_options --disable-maintenance-service
ac_add_options --disable-parental-controls
ac_add_options --disable-profiling
ac_add_options --disable-tests
ac_add_options --enable-bootstrap=-clang,-sccache,-vs
if test -x "$(command -v sccache)"; then
ac_add_options --with-ccache=sccache
elif test -f "$HOME/.mozbuild/sccache/sccache"; then
ac_add_options --with-ccache="$HOME"/.mozbuild/sccache/sccache
fi
ac_add_options --enable-default-browser-agent
ac_add_options --enable-install-strip
ac_add_options --enable-jxl
if test "$GEN_PGO"; then
ac_add_options --enable-profile-generate=cross
elif test "$USE_PGO"; then
ac_add_options --enable-profile-use=cross
ac_add_options --with-pgo-jarlog="$GITHUB_WORKSPACE"/en-US.log
ac_add_options --with-pgo-profile-path="$GITHUB_WORKSPACE"/merged.profdata
fi
ac_add_options --enable-strip
if test "$WFX_RELEASE"; then
ac_add_options --enable-update-channel=release
elif test "$WFX_PRE_RELEASE"; then
ac_add_options --enable-update-channel=beta
fi
ac_add_options --enable-unverified-updates
ac_add_options --enable-updater
ac_add_options --target=x86_64-pc-mingw32
ac_add_options --with-app-basename=Waterfox
ac_add_options --with-app-name=waterfox
ac_add_options --with-branding=waterfox/browser/branding
ac_add_options --with-distribution-id=net.waterfox
if [ -d "$PWD"/waterfox/browser/locales/en-GB ]; then
ac_add_options --with-l10n-base="$PWD"/waterfox/browser/locales
fi
export MOZ_REQUIRE_SIGNING=
export MOZ_TELEMETRY_REPORTING=