Bug 1432298 - Make sm-fuzzing build ready for libfuzzer. r=sfink

This patch disables the stdcxx-compat check for the sm-fuzzing build which
requires patching autospider as well. Furthermore, it switches the build
to linux64-clang-6-pre because the older clang 3.9 does not support trace-pc
instrumentation. Finally, it excludes fuzzing parts from the vanilla allocation
check.

MozReview-Commit-ID: FdhCIFdUore

--HG--
extra : rebase_source : c41bda01cb42f2ef0cd5a1675d88bdb55d9dc8c9
This commit is contained in:
Christian Holler 2018-01-22 21:23:47 +01:00
parent c9f2884bb5
commit 9b23854e8b
4 changed files with 10 additions and 2 deletions

View File

@ -139,6 +139,10 @@ def main():
if "_memory_" in filename:
continue
# Ignore the fuzzing code imported from m-c
if "Fuzzer" in filename:
continue
fn = m.group(2)
if filename == 'jsutil.o':
jsutil_cpp.add(fn)

View File

@ -276,7 +276,7 @@ else:
CONFIGURE_ARGS += ' --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32'
if platform.system() == 'Linux':
CONFIGURE_ARGS += ' --enable-stdcxx-compat'
CONFIGURE_ARGS = '--enable-stdcxx-compat ' + CONFIGURE_ARGS
# Timeouts.
ACTIVE_PROCESSES = set()

View File

@ -1,5 +1,5 @@
{
"configure-args": "--enable-fuzzing --enable-debug-symbols='-gline-tables-only -gdwarf-2' --disable-jemalloc --enable-address-sanitizer --enable-ctypes --enable-nspr-build",
"configure-args": "--enable-fuzzing --enable-debug-symbols='-gline-tables-only -gdwarf-2' --disable-jemalloc --disable-stdcxx-compat --enable-address-sanitizer --enable-ctypes --enable-nspr-build",
"optimize": true,
"debug": false,
"compiler": "clang",

View File

@ -169,3 +169,7 @@ sm-fuzzing-linux64/opt:
symbol: SM(f)
run:
spidermonkey-variant: fuzzing
toolchains:
- linux64-clang-6-pre
- linux64-gcc
- linux64-rust