summaryrefslogtreecommitdiffstats
path: root/mobile/android/config/mozconfigs/android-x86_64/nightly-fuzzing-asan
blob: 63467dafb210258a7b3514b75d3d834310888a4a (plain)
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
. "$topsrcdir/mobile/android/config/mozconfigs/android-x86_64/nightly"

# Remove unwanted environment variables from the 'nightly' mozconfig.
unset MOZ_ANDROID_POCKET

# We still need to build with debug symbols
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O2 -gline-tables-only"

. $topsrcdir/build/unix/mozconfig.asan
ac_add_options --disable-elf-hack
ac_add_options --enable-linker=bfd

ac_add_options --enable-fuzzing
unset MOZ_STDCXX_COMPAT
unset ENABLE_CLANG_PLUGIN

# Add the path to the clang_rt used, so it can be packaged with the build.
if [ -d "$MOZ_FETCHES_DIR/clang" ]; then
    CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/*/lib/linux && pwd)"
    export MOZ_CLANG_RT_ASAN_LIB_PATH="${CLANG_LIB_DIR}/libclang_rt.asan-x86_64-android.so"
fi

# Package js shell.
export MOZ_PACKAGE_JSSHELL=1

# This adds '-fuzzing-asan' to the APK filename for local builds.
export MOZ_PKG_SPECIAL=fuzzing-asan

. "$topsrcdir/mobile/android/config/mozconfigs/common.override"