forked from BrowserWorks/Waterfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mozconfig-x86_64-apple-darwin
66 lines (57 loc) · 2.15 KB
/
.mozconfig-x86_64-apple-darwin
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
# Targetting x64 builds
X=$(getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN)
if test $(uname -s) = Darwin; then
# Use the mozbuild linker when building on macOS
# to avoid linking mismatches.
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
elif test $(uname -s) = Linux; then
CCTOOLS=$HOME/crosstool12
CROSS_SYSROOT=$CCTOOLS/MacOSX11.3.sdk
export CC=$CCTOOLS/clang/bin/clang
export CXX=$CCTOOLS/clang/bin/clang++
export DMG_TOOL=$CCTOOLS/dmg/dmg
export DSYMUTIL=$CCTOOLS/clang/bin/dsymutil
export HFS_TOOL=$CCTOOLS/dmg/hfsplus
export HOST_CFLAGS="-g"
export HOST_CXXFLAGS="-g"
export HOST_LDFLAGS="-g"
export MACOS_SDK_DIR=$CROSS_SYSROOT
export MKFSHFS=$CCTOOLS/hfsplus-tools/newfs_hfs
mk_add_options "export LD_LIBRARY_PATH=$CCTOOLS/clang/lib"
mk_add_options "export PATH=$CCTOOLS/cctools/bin:$CCTOOLS/clang/bin:$PATH"
unset MOZ_STDCXX_COMPAT
fi
if test "$WFX_RELEASE"; then
ac_add_options --enable-lto
ac_add_options --enable-release
ac_add_options --with-branding=browser/branding/waterfox
else
ac_add_options --with-branding=browser/branding/dokimi
fi
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
ac_add_options --disable-dmd
ac_add_options --disable-geckodriver
ac_add_options --disable-jprof
ac_add_options --disable-profiling
ac_add_options --disable-tests
ac_add_options --disable-trace-logging
ac_add_options --disable-verify-mar
ac_add_options --enable-application=browser
ac_add_options --enable-optimize="-O3 -march=nehalem -mtune=haswell -w"
ac_add_options --enable-rust-simd
ac_add_options --enable-updater
ac_add_options --target=x86_64-apple-darwin
ac_add_options --with-app-basename=Waterfox
ac_add_options --with-app-name=waterfox
ac_add_options --with-distribution-id=net.waterfox
ac_add_options --with-l10n-base=$PWD/browser/locales/l10n
if [ -x "$(command -v sccache)" ]; then
ac_add_options --with-ccache=sccache
elif [ -f "$HOME/.mozbuild/sccache/sccache" ]; then
ac_add_options --with-ccache=$HOME/.mozbuild/sccache/sccache
fi
mk_add_options AUTOCLOBBER=1
mk_add_options MOZ_MAKE_FLAGS=-j${X%.*}
MOZ_REQUIRE_SIGNING=